<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>*NScripter API Reference [compiled by senzogawa, translated/annotated/XML-ized by Mion (incorporates former translation by Seung "gp32" Park)]</title>
<style type="text/css">
	body
	{
		background-color: #ffffff;
		font-size: 90%;
		font-family: sans-serif;
	}
	a
	{
		text-decoration: none;
	}
	a:link
	{
		color: #6666FF;
	}

	a:visited
	{
		color: #7560CC;
	}
	a:hover
	{
		color: #5809FF;
		text-decoration: underline;
	}
	div.Space
	{
		clear: both;
		padding-left: 1px;
	}
	span.EditDate
	{
		font-size: 75%;
		font-style:italic;
	}
	span.NoBr
	{
		white-space: nowrap;
	}
	div#INDEX
	{
		font-size: 95%;
		font-weight: bold;
	}
	div#INDEX .Category
	{
		font-size: 80%;
		padding-bottom: 4px;
	}
	div#SIDEBAR
	{
		font-size: smaller;
	}
	div#SIDEBAR.Unframed
	{
		width: 20%;
		float: right;
	}
	/* for list */
	div#LIST
	{
		margin-bottom: 20px;
	}
	div#LIST.NoSidebar
	{
		width: 100%;
	}
	div#LIST.HasSidebar
	{
		float: left;
		width: 79%;
	}
	.T
	{
		background-color: #CECFFF;
	}
	.S
	{
		background-color: #FFCCCC;
	}
	.F
	{
		background-color: #FFFFCC;
	}
	.E
	{
		background-color: #CCFFFF;
	}
	.FE
	{
		background-color: #CCFFCC;
	}
	div#LIST .Word
	{
		border-top: solid 1px;
		padding-left: 1px;
		padding-right: 1px;
		width: 100%;
		font-size: 95%;
	}
	div#LIST .WordLiteral
	{
		float: left;
		min-width: 18%;	/* keeps Moz happy */
		* width: 18%;	/* keeps IE happy */
		font-weight: bold;
	}
	div#LIST .Function
	{
		float: left;
		width: 80%;
		margin-left: 2%;
	}
	/* for main */
	div#MAIN
	{
		clear: both;
		width: 100%;
	}
	span.WordPhonetic
	{
		font-size: 50%;
		margin-top: 1px;
		margin-bottom: 0px;
	}
	div.WordName
	{
		clear: both;
		margin-top: 1px;
		margin-bottom: 0px;
	}
	div.Support
	{
		width: 100%;
		margin-right: 1em;
		font-size: 50%;
	}
	span.WordVersion
	{
		float: left;
		color: blue;
		background-color: white;
		margin-top: 0px;
		margin-bottom: 1px;
	}
	span.WordField
	{
		float: left;
		margin-top: 1px;
		margin-left: 5px;
		margin-bottom: 0px;
	}
	span.EngineField
	{
		float: left;
		margin-top: 1px;
		margin-left: 1em;
		padding-left: 1em;
		text-indent: -1em;
		margin-bottom: 0px;
	}
	span.EngineVersion
	{
		color: blue;
		background-color: white;
		margin-left: 3px;
	}
	/* hn */
	h2 /* cmd type, engine(s), name */
	{
		* width: 100%;
		max-width: 100%;
		font-size: 180%;
		font-weight: bold;
		color: #6666ff;

		background-repeat: no-repeat;
		background-color: #DDDDFF;

		padding-top: 6px;
		padding-left: 5px;
		padding-bottom: 4px;
		padding-right: 0px;

		margin-top: 15px;
		margin-left: 3px;
		margin-bottom: 0px;
		margin-right: 3px;

		border-left: #6666FF 10px solid;
		border-bottom: #9999CC 2px solid;
		border-right: #9999CC 2px solid;
	}
	h3 /* cmd format string */
	{
		background-color: transparent;

		* width: 95%;
		max-width: 95%;
		font-size: 100%;
		color: #ff3333;
		font-weight: bold;

		padding-top: 3px;
		padding-left: 18px;
		text-indent: -15px; /* hanging indent */
		padding-bottom: 3px;
		padding-right:3px;

		margin-top: 10px;
		margin-left: 15px;
		margin-bottom: 10px;
		margin-right: 15px;

		border: #6666FF 1px solid;
	}
	h4 /* cmd category */
	{
		background-color: #6666cc;

		* width: 95%;
		max-width: 95%;
		font-size: 80%;
		color: white;
		font-weight: bold;

		text-align: left;
		vertical-align: middle;

		padding-top: 3px;
		padding-left: 3px;
		padding-bottom: 3px;
		padding-right:3px;

		margin-top: 0px;
		margin-left: 10px;
		margin-bottom: 5px;
		margin-right: 10px;

		border-bottom: #333399 2px solid;
		border-right: #333399 2px solid;

	}
	a.WordCategory
	{
		color: white;
	}
	a.WordCategory:link
	{
		color: white;
	}
	a.WordCategory:visited
	{
		color: white;
	}
	a.WordCategory:hover
	{
		color: white;
	}
	/* Arguments */
	div.Arguments
	{
		width: 100%;
		font-size: 80%;
	/*	color: #ff3333; */
		color: #cc3333;

		padding-top: 3px;
		padding-left: 3px;
		padding-bottom: 3px;
		padding-right:3px;

		margin-top: 10px;
		margin-left: 15px;
		margin-bottom: 10px;
		margin-right: 15px;

	}
	span.ArgType
	{
		float: left;
		width: 15%;
	}
	span.ArgMeaning
	{
		float: left;
		width: 80%;
		padding-left: 1em;
	}
	div.ContentBody
	{
		margin-left: 15px;
		margin-right: 15px;
	}
	p.Description
	{
		margin-top: 1em;
		margin-bottom: 1em;
		font-size: 100%;
		width: 100%;
	}
	span.Indent
	{
		padding-left: 2em;
	}
	div.NoticeHead
	{
		float: left;
		color: red;
	}
	div.NoticeBody
	{
		margin-left: 1em;
		margin-bottom: 1em;
		font-size: 80%;
		color: red;
	}
	div.Example
	{
		clear: both;
	}
	div.ExComment
	{
		font-size: 85%;
	}
	pre.ExSource
	{
		margin-top: 2px;
		background-color: #e0e0e0;
	  /* various browser-specific word-wrapping techniques */
	  white-space: pre-wrap; /* For IE and various */
	  white-space: -pre-wrap; /* For older Opera */
	  white-space: o-pre-wrap; /* For Opera */
	  white-space: -moz-pre-wrap; /* For FireFox and Mozilla Browsers */
	  word-wrap: break-word; /* For IE 5.5+ */
	}
	span.ExHeading
	{
		font-weight: bold;
	}
	table#VALUE_EXPLANATION_TABLE
	{
		font-size: smaller;
	}
	table#NUMBER_RANGE_TABLE
	{
		font-size: smaller;
	}
	table#BGCOLOR_EXPLANATION_TABLE
	{
		font-size: smaller;
	}
	table#ENGINE_EXPLANATION_TABLE
	{
		font-size: smaller;
	}
	.grey
	{
		background-color: #E0E0E0;
	}
	td
	{
		padding-left: 2px;
	}
</style>
</head>
<body>
<div id="HEADER">
	<a id="top" name="top"></a>
	<span class="EditDate">Last edited 19 / 10 / 2012</span>
	<h5>Background Color Explanations</h5>
	<table id="BGCOLOR_EXPLANATION_TABLE">
		<col span="1" width="100">
		<col span="1">
		<tbody>
			<tr>
				<td class="S">Reserved Syntax</td>
				<td>Keywords or labels with predefined functions</td>
			</tr>
			<tr>
				<td class="F">F Commands</td>
				<td>Commands that may only be used in the definition block</td>
			</tr>
			<tr>
				<td class="E">E Commands</td>
				<td>Commands that may only be used in the program block</td>
			</tr>
			<tr>
				<td class="FE">F/E Commands</td>
				<td>Commands that may be used in the program or the definition block</td>
			</tr>
			<tr>
				<td class="T">Special Text Commands</td>
				<td>Special characters that may be used as command substitutes within displayed text blocks</td>
			</tr>
		</tbody>
	</table>
	<h5>Argument Type Explanations</h5>
	<table id="VALUE_EXPLANATION_TABLE">
		<col class="grey" span="1" width="100">
		<col span="1">
		<tbody>
			<tr>
				<td>NAME</td>
				<td>Case-insensitive string of alphanumerics and/or '_'; must begin with an alphabet letter or '_'</td>
			</tr>
			<tr>
				<td>LABEL</td>
				<td>Character string consisting of '*' followed by a NAME</td>
			</tr>
			<tr>
				<td>NUM</td>
				<td>Numeric expression: string(s) of numeric digits possibly connected by any of the operators '+', '-', '*', '/'</td>
			</tr>
			<tr>
				<td>STR</td>
				<td>Character string enclosed by '"'s; (originally) intended for full-width Japanese chars</td>
			</tr>
			<tr>
				<td>%VAR</td>
				<td>Variable that may store numeric values</td>
			</tr>
			<tr>
				<td>$VAR</td>
				<td>Variable that may store character strings</td>
			</tr>
			<tr>
				<td>COLOR</td>
				<td>RGB value: '#' followed by 6 hexadecimal chars</td>
			</tr>
			<tr>
				<td>EFFECT</td>
				<td>Built-in effect number w/duration, or number defined by an earlier "effect" command</td>
			</tr>
			<tr>
				<td>ENUM</td>
				<td>Argument must be one of the comma-separated values within the {}s</td>
			</tr>
			<tr>
				<td>CONDITION</td>
				<td>Expression that returns a true/false value</td>
			</tr>
			<tr>
				<td>SENTENCE</td>
				<td>A single command, or multiple commands separated by ':'</td>
			</tr>
			<tr>
				<td>''</td>
				<td>Surrounds a string literal</td>
			</tr>
			<tr>
				<td>[]</td>
				<td>Surrounds optional argument(s)</td>
			</tr>
			<tr>
				<td>...</td>
				<td>Follows an argument pattern that may be repeated</td>
			</tr>
		</tbody>
	</table>
	<h5>Allowed Numeric Ranges</h5>
	<table id="NUMBER_RANGE_TABLE">
		<col class="grey" span="1" width="100">
		<col bgcolor="#E0E0E0" span="1" width="75">
		<col span="1">
		<tbody>
			<tr>
				<td>Variable Number</td>
				<td>0 - 4095</td>
				<td>If 4096 is used, the initial value is undefined. (ONScripter-RU supports 0-9999 variable range)</td>
			</tr>
			<tr>
				<td>Array Number</td>
				<td>0 - </td>
				<td>Unbounded?  This could cause memory issues.</td>
			</tr>
			<tr>
				<td>Sprite Number</td>
				<td>0 - 999</td>
				<td>Use of 1000 will cause an error.</td>
			</tr>
			<tr>
				<td>Enhanced Sprite Number</td>
				<td>0 - 255</td>
				<td>Use of 512 will cause an error.</td>
			</tr>
			<tr>
				<td>Effect Number</td>
				<td>2 - 255</td>
				<td>Use of 256 will cause an error.</td>
			</tr>
			<tr>
				<td>Button Number</td>
				<td>1 - </td>
				<td>Unbounded?  This could cause memory issues.</td>
			</tr>
			<tr>
				<td>Channel Number</td>
				<td>0 - 49</td>
				<td>NScr ver2.82+ allows (0-199)</td>
			</tr>
		</tbody>
	</table>
	<h5>Related Game Engines</h5>
	<table id="ENGINE_EXPLANATION_TABLE">
		<col class="grey" span="1" width="100">
		<col span="1">
		<tbody>
			<tr>
				<td><a href="http://www.nscripter.com/" target="_blank">NScripter</a></td>
				<td>A game scripting engine</td>
			</tr>
			<tr>
				<td><a href="http://onscripter.sourceforge.jp/onscripter.html" target="_blank">ONScripter</a></td>
				<td>An open-source NScripter emulator</td>
			</tr>
			<tr>
				<td><a href="http://onscripter.denpa.mobi/" target="_blank">ONScripter-EN</a></td>
				<td>English branch of ONScripter</td>
			</tr>
			<tr>
				<td><a href="http://onscripter.denpa.mobi/" target="_blank">PONScripter</a></td>
				<td>Proportional ONScripter: supports Unicode and proportional fonts</td>
			</tr>
			<tr>
				<td>ONScripter-RU</td>
				<td>A modified version of ONScripter-EN. It partially supports unicode and 16:9 resolutions (;mode1920, ;mode1280, ;mode480). It can also load a script using a `game_script` command in ons.cfg.</td>
			</tr>
		</tbody>
	</table>
	<br>
</div>

<div id="QUICKTABLE">
	<div class="HasSidebar" id="LIST">
		<a id="category_startend"></a>
		<h5>Game Start/End/Quit</h5>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_define-label" title="Reserved Syntax: *define">*define</a></span>
			<span class="Function">label denoting the start of the definition block</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_start-label" title="Reserved Syntax: *start">*start</a></span>
			<span class="Function">label denoting the start of the program block</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#game" title="Definition Block Only: game">game</a></span>
			<span class="Function">end definition block and execute game</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#reset" title="Program Block Only: reset">reset</a></span>
			<span class="Function">reset game</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#definereset" title="Program Block Only: definereset">definereset</a></span>
			<span class="Function">force total script reset</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#end" title="Definition/Program Block: end">end</a></span>
			<span class="Function">end game and close window</span>
			<div class="Space"></div>
		</div>
		<a id="category_format"></a>
		<h5>Syntax Markers</h5>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_asterisk" title="Reserved Syntax: *(label-name)">*</a></span>
			<span class="Function">prefix for labels</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_semicolon" title="Reserved Syntax: ;">;</a></span>
			<span class="Function">prefix for comments</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_colon" title="Reserved Syntax: (command) : (command)">:</a></span>
			<span class="Function">write and execute multiple commands on a line</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_percentsign" title="Reserved Syntax: %(variable-num)">%</a></span>
			<span class="Function">prefix for numeric variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_dollarsign" title="Reserved Syntax: $(variable-num)">$</a></span>
			<span class="Function">prefix for character variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_questionmark" title="Reserved Syntax: ?(array-num)">?</a></span>
			<span class="Function">prefix for array variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_tilde" title="Reserved Syntax: ~">~</a></span>
			<span class="Function">destination point for jumpf/jumpb</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_slash" title="Special Text Command: /">/</a></span>
			<span class="Function">ignore linefeed</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_curlybraces" title="Ver.2.65 Special Text Command: {(str-var/num-var), (str/num)[, ...]}">{}</a></span>
			<span class="Function">set variables within a text block</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_backquote" title="ONScr Ver.20040909 Special Text Command: `">`</a></span>
			<span class="Function">enter single-byte text mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_hexliteral" title="Reserved Syntax: 0x(hexnum)">0x</a></span>
			<span class="Function">provide a numeric literal in hexadecimal format</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_caret" title="Special Text Command: ^">^</a></span>
			<span class="Function">enter ponscripter text mode</span>
			<div class="Space"></div>
		</div>
		<a id="category_textwindow"></a>
		<h5>Text Window</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#setwindow" title="Program Block Only: setwindow (text top-left X), (text top-left Y), (num text columns), (num text lines), (text font-size X), (text font-size Y), (spacing X), (spacing Y), (default text speed), (boldface:0=off/1=on), (drop-shadow:0=off/1=on), (window-color), (window top-left X), (window top-left Y), (window bottom-right X), (window bottom-right Y)">setwindow</a></span>
			<span class="Function">set up text window and character display attributes</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#setwindow2" title="Program Block Only: setwindow2 #rrggbb">setwindow2</a></span>
			<span class="Function">modify text window appearance</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textoff" title="Program Block Only: textoff">textoff</a></span>
			<span class="Function">hide text window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#texton" title="Program Block Only: texton">texton</a></span>
			<span class="Function">show text window</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#windoweffect" title="Definition/Program Block: windoweffect (effect-spec)">windoweffect</a></span>
			<span class="Function">specify an effect for the text window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#erasetextwindow" title="Program Block Only: erasetextwindow (0=off/1=on)">erasetextwindow</a></span>
			<span class="Function">toggle text display during effect runtime</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#btnnowindowerase" title="Definition Block Only: btnnowindowerase">btnnowindowerase</a></span>
			<span class="Function">text window won't be removed while buttons are in effect</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#noteraseman" title="Ver.1.99 Definition Block Only: noteraseman">noteraseman</a></span>
			<span class="Function">people won't be erased when the text window is removed</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#gettext" title="Ver.2.00 Program Block Only: gettext $(result-var)">gettext</a></span>
			<span class="Function">retrieve the contents of the text window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#tateyoko" title="Ver.2.03 Program Block Only: tateyoko (0=horiz/1=vert)">tateyoko</a></span>
			<span class="Function">toggle text display during effect runtime</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#windowchip" title="Ver.2.25 Definition Block Only: windowchip (chip sprite-num)">windowchip</a></span>
			<span class="Function">show the specified sprite whenever the text window is displayed</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#setwindow3" title="Ver.2.30 Program Block Only: setwindow3 (text top-left X), (text top-left Y), (num text columns), (num text lines), (text font-size X), (text font-size Y), (spacing X), (spacing Y), (default text speed), (boldface:0=off/1=on), (drop-shadow:0=off/1=on), (window-color), (window top-left X), (window top-left Y), (window bottom-right X), (window bottom-right Y)">setwindow3</a></span>
			<span class="Function">same as <b>setwindow</b>, but doesn't clear Log buffer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textspeeddefault" title="Ver.2.47 Program Block Only: textspeeddefault">textspeeddefault</a></span>
			<span class="Function">change to default text display speed</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#font" title="Ver.2.67 Program Block Only: font (font-name)">font</a></span>
			<span class="Function">change the text display font</span>
			<div class="Space"></div>
		</div>
		<a id="category_drawtext"></a>
		<h5>Text Display</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defaultfont" title="Definition Block Only: defaultfont (font-name)">defaultfont</a></span>
			<span class="Function">specify default font</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_bang-s" title="Special Text Command: !s(speed)">!s</a></span>
			<span class="Function">set the character display speed</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_pound" title="Special Text Command: #rrggbb">#</a></span>
			<span class="Function">change character color</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textclear" title="Program Block Only: textclear">textclear</a></span>
			<span class="Function">clear displayed text</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#locate" title="Program Block Only: locate (text-pos X), (text-pos Y)">locate</a></span>
			<span class="Function">change the position of character output within the text window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#puttext" title="Program Block Only: puttext (text-str)">puttext</a></span>
			<span class="Function">output a short bit of text (like after an <b>if</b> statement)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#br" title="Program Block Only: br">br</a></span>
			<span class="Function">insert a carriage return into the displayed text</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textspeed" title="Program Block Only: textspeed (speed)">textspeed</a></span>
			<span class="Function">change text display speed</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#shadedistance" title="Ver.2.25 Definition/Program Block: shadedistance (x-offset), (y-offset)[, (colour)]">shadedistance</a></span>
			<span class="Function">specify the text shadow offset</span>
		<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#setkinsoku" title="Ver.2.70 Definition Block Only: setkinsoku (forbidden-start-chars), (forbidden-end-chars)">setkinsoku</a></span>
			<span class="Function">set forbidden start/end characters for Japanese</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#addkinsoku" title="Ver.2.70 Definition Block Only: addkinsoku (forbidden-start-chars), (forbidden-end-chars)">addkinsoku</a></span>
			<span class="Function">add forbidden start/end characters for Japanese</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#kinsoku" title="Ver.2.73 Program Block Only: kinsoku {on,off}">kinsoku</a></span>
			<span class="Function">toggle enforcement of forbidden Japanese start/end chars</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#english" title="Ver.2.82 Definition Block Only: english">english</a></span>
			<span class="Function">use NScripter English mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textcolor" title="Ver.(undoc) Program Block Only: textcolor #rrggbb">textcolor</a></span>
			<span class="Function">change the color for text output</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#language" title="ONScr-EN Ver.20080823 Definition/Program Block: language {english/japanese}">language</a></span>
			<span class="Function">set preferred text language</span>
			<div class="Space"></div>
		</div>
		<a id="category_click"></a>
		<h5>Click Wait</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_atsign" title="Special Text Command: @">@</a></span>
			<span class="Function">enter click wait state</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_backslash" title="Special Text Command: \">\</a></span>
			<span class="Function">enter new-page wait state</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#clickstr" title="Definition Block Only: clickstr (clickwait-chars), (num lines left for pagewait)">clickstr</a></span>
			<span class="Function">enter click wait state upon hitting any of the specified chars</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#linepage" title="Ver.1.99 Definition Block Only: linepage">linepage</a></span>
			<span class="Function">wait for click at the end of a line</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_underscore" title="Ver.1.98 Special Text Command: _">_</a></span>
			<span class="Function">ignore the following click</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#clickvoice" title="Definition Block Only: clickvoice (clickwait sound-file), (pagewait sound-file)">clickvoice</a></span>
			<span class="Function">play a specified sound when a click occurs</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#autoclick" title="Program Block Only: autoclick (wait-time)">autoclick</a></span>
			<span class="Function">wait for click at the end of a line</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#click" title="Program Block Only: click">click</a></span>
			<span class="Function">enter click wait state without displaying the click wait cursor</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lrclick" title="Ver.2.49 Program Block Only: lrclick">lrclick</a></span>
			<span class="Function">wait for either a left or right click</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#clickskippage" title="Ver.2.60 Definition Block Only: clickskippage">clickskippage</a></span>
			<span class="Function">skip to the new page clickwait upon click</span>
			<div class="Space"></div>
		</div>
		<a id="category_cursor"></a>
		<h5>Cursor</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#setcursor" title="Program Block Only: setcursor (cursor-num:0=clickwait/1=pagewait), (cursor image-file), (relative X-pos), (relative Y-pos)">setcursor</a></span>
			<span class="Function">set graphic file and relative position for click wait cursor</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#abssetcursor" title="Program Block Only: abssetcursor (cursor-num:0=clickwait/1=pagewait), (cursor image-file), (absolute X-pos), (absolute Y-pos)">abssetcursor</a></span>
			<span class="Function">set absolute position and graphic file for click wait cursor</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mousecursor" title="Definition/Program Block: mousecursor (cursor-file)">mousecursor</a></span>
			<span class="Function">specify file for general mouse cursor</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mousemode" title="Ver.2.93 Program Block Only: mousemode (cursor-display-flag)">mousemode</a></span>
			<span class="Function">toggle mouse cursor display</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#movemousecursor" title="Ver.2.00 Program Block Only: movemousecursor (dest X-pos), (dest Y-pos)">movemousecursor</a></span>
			<span class="Function">move the mouse to a particular position on the screen</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getnextline" title="Program Block Only: getnextline %(next-line X-result), %(next-line Y-result)">getnextline</a></span>
			<span class="Function">get the text window coordinates of the start of the following line</span>
			<div class="Space"></div>
		</div>
		<a id="category_image"></a>
		<h5>Image Display</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#transmode" title="Definition Block Only: transmode (transparency-mode)">transmode</a></span>
			<span class="Function">change alpha blend transparency mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#underline" title="Definition/Program Block: underline (ground Y-pos)">underline</a></span>
			<span class="Function">set ground line for standing images</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#bgalia" title="Definition Block Only: bgalia (top-left X-pos), (top-left Y-pos), (width), (height)">bgalia</a></span>
			<span class="Function">set parameters for a nonstandard background</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#humanz" title="Definition Block Only: humanz (standing-pic sprite-level)">humanz</a></span>
			<span class="Function">designate overlap priority for sprites and standing images</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#windowback" title="Definition Block Only: windowback">windowback</a></span>
			<span class="Function">insert text window at the same overlap level as standing image(s)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bg" title="Program Block Only: bg (image-file), (effect-spec)">bg</a></span>
			<span class="Function">set background image</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#ld" title="Program Block Only: ld (standing-pic pos), (image-file), (effect-spec)">ld</a></span>
			<span class="Function">set standing image</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#cl" title="Program Block Only: cl (standing-pic pos), (effect-spec)">cl</a></span>
			<span class="Function">erase specified standing image</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#tal" title="Program Block Only: tal (standing-pic pos), (transparency)">tal</a></span>
			<span class="Function">modify standing image opacity</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#print" title="Program Block Only: print (effect-spec)">print</a></span>
			<span class="Function">display images while removing those that should be hidden</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsp" title="Program Block Only: lsp (sprite-num), (image-str), (top-left X-pos), (top-left Y-pos)[, (opacity)]">lsp</a></span>
			<span class="Function">load sprite into memory</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsph" title="Program Block Only: lsph (sprite-num), (image-str), (top-left X-pos), (top-left Y-pos)[, (opacity)]">lsph</a></span>
			<span class="Function">load sprite into memory (hidden)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#csp" title="Program Block Only: csp (sprite-num)">csp</a></span>
			<span class="Function">delete sprite from memory</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#vsp" title="Program Block Only: vsp (sprite-num), (visible:0=no/1=yes)">vsp</a></span>
			<span class="Function">toggle display of a loaded sprite</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#spstr" title="Ver.1.97 Program Block Only: spstr (control-str)">spstr</a></span>
			<span class="Function">execute the given control string for complex-button sprite display</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#msp" title="Program Block Only: msp (sprite-num), (X-offset), (Y-offset)[, (opacity-offset)]">msp</a></span>
			<span class="Function">change sprite position (relative)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#amsp" title="Program Block Only: amsp (sprite-num), (X-pos), (Y-pos)[, (opacity)]">amsp</a></span>
			<span class="Function">change sprite position (absolute)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#cell" title="Program Block Only: cell (sprite-num), (cell-num)">cell</a></span>
			<span class="Function">manually designate the cell of a sprite</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#blt" title="Program Block Only: blt (onscreen X-pos), (onscreen Y-pos), (onscreen width), (onscreen height), (inbutton X-pos), (inbutton Y-pos), (inbutton width), (inbutton height)">blt</a></span>
			<span class="Function">blit image onto screen instantaneously</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#ofscpy" title="Program Block Only: ofscpy">ofscpy</a></span>
			<span class="Function">transfer an image drawn by <b>blt</b> to the offscreen buffer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#repaint" title="Program Block Only: repaint">repaint</a></span>
			<span class="Function">redraw screen</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#allsphide" title="Program Block Only: allsphide">allsphide</a></span>
			<span class="Function">hide all sprites at the same time</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#allspresume" title="Program Block Only: allspresume">allspresume</a></span>
			<span class="Function">redisplay sprites hidden with <b>allsphide</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#humanorder" title="Ver.2.25 Program Block Only: humanorder (human-pos-chars), (effect-spec)">humanorder</a></span>
			<span class="Function">set priority levels for standing image positions</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#humanpos" title="Ver.(undoc) Definition/Program Block: humanpos (left-X-pos), (center-X-pos), (right-X-pos)">humanpos</a></span>
			<span class="Function">set coordinates for standing image positions</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bgcopy" title="Ver.2.50 Program Block Only: bgcopy">bgcopy</a></span>
			<span class="Function">copy current screen to the background</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getspsize" title="Ver.2.53 Program Block Only: getspsize (sprite-num), (width-var), (height-var)[, (cell-var)]">getspsize</a></span>
			<span class="Function">return the sprite's size</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getspmode" title="Ver.2.61 Program Block Only: getspmode (result-var), (sprite-num)">getspmode</a></span>
			<span class="Function">return whether the given sprite is displayed</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#spfont" title="Ver.1.99 Definition/Program Block: spfont (font-name), (font-width), (font-height), (spacing-X), (spacing-Y), (boldface:0=off/1=on), (drop-shadow:0=off/1=on)">spfont</a></span>
			<span class="Function">set the font used for string sprites</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#strsp" title="Ver.2.62 Program Block Only: strsp (sprite-num), (str), (top-left X-pos), (top-left Y-pos), (num text columns), (num text lines), (char-width), (char-height), (spacing X), (spacing Y), (boldface:0=off/1=on), (drop-shadow:0=off/1=on)[, (color-spec)...]">strsp</a></span>
			<span class="Function">create and display a sprite of a multi-line character string</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#strsph" title="Ver.2.81 Program Block Only: strsph (sprite-num), (str), (top-left X-pos), (top-left Y-pos), (num text columns), (num text lines), (char-width), (char-height), (spacing X), (spacing Y), (boldface:0=off/1=on), (drop-shadow:0=off/1=on)[, (color-spec)...]">strsph</a></span>
			<span class="Function">create a sprite of a multi-line character string, hidden</span>
			<div class="Space"></div>
		</div>
		<a id="category_visualeffect"></a>
		<h5>Visual Effects</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#effect" title="Definition Block Only: effect (effect-num), (built-in effect-num), (effect duration)[, (mask-file)]">effect</a></span>
			<span class="Function">designate an effect</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#effectblank" title="Definition Block Only: effectblank (effect wait-time)">effectblank</a></span>
			<span class="Function">designate wait duration after an effect is over</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#effectcut" title="Ver.1.97 Definition Block Only: effectcut">effectcut</a></span>
			<span class="Function">toggle effect runtime during "skip to next choice" mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#effectskip" title="Ver.2.92 Program Block Only: effectskip (allow-skip-flag)">effectskip</a></span>
			<span class="Function">specify whether effects can be skipped</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#quake" title="Ver.1.80 Program Block Only: quake (amplitude), (duration)">quake</a></span>
			<span class="Function">cause a shaking screen effect</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#quakex" title="Program Block Only: quakex (amplitude), (duration)">quakex</a></span>
			<span class="Function">cause a horizontal shaking effect</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#quakey" title="Program Block Only: quakey (amplitude), (duration)">quakey</a></span>
			<span class="Function">cause a vertical shaking effect</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#monocro" title="Program Block Only: monocro (base-color)">monocro</a></span>
			<span class="Function">make screen monochrome/color-toned</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#nega" title="Program Block Only: nega (display-flag)">nega</a></span>
			<span class="Function">set negative screen display</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#flushout" title="Ver.2.48 Program Block Only: flushout (duration)">flushout</a></span>
			<span class="Function">execute flushout effect</span>
			<div class="Space"></div>
		</div>
		<a id="category_var_bar"></a>
		<h5>Character/Number/Bar Display</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_percentchar" title="Special Text Command: %(var-num)">%</a></span>
			<span class="Function">display contents of numeric variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_dollarchar" title="Special Text Command: $(var-num)">$</a></span>
			<span class="Function">display contents of string variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_questionchar" title="Ver.1.97 Special Text Command: ?(var-num)">?</a></span>
			<span class="Function">display contents of array variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bar" title="Program Block Only: bar (bar-num), (current-value), (top-left X-pos), (top-left Y-pos), (width), (height), (max-value), (color)">bar</a></span>
			<span class="Function">create and display a (graph) bar</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#barclear" title="Program Block Only: barclear">barclear</a></span>
			<span class="Function">clear bar display</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#prnum" title="Program Block Only: prnum (numeric-label-num), (current-value), (top-left X-pos), (top-left Y-pos), (char-width), (char-height), (color)">prnum</a></span>
			<span class="Function">initialize a numeric label</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#prnumclear" title="Program Block Only: prnumclear">prnumclear</a></span>
			<span class="Function">clear numeric labels</span>
			<div class="Space"></div>
		</div>
		<a id="category_sound"></a>
		<h5>Music/SFX Playback</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#cdfadeout" title="Definition Block Only: cdfadeout (duration)">cdfadeout</a></span>
			<span class="Function">specify duration of CD-DA fade-out</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#chkcdfile" title="Ver.1.99 Definition Block Only: chkcdfile (filename),(error-msg)">chkcdfile</a></span>
			<span class="Function">determine if CD drive contains a file called "filename"</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#chkcdfile_ex" title="Ver.2.20 Definition Block Only: chkcdfile_ex %(result-var),(filename)">chkcdfile_ex</a></span>
			<span class="Function">determine if CD drive contains a file called "filename"</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mp3fadeout" title="Definition/Program Block: mp3fadeout (duration)">mp3fadeout</a></span>
			<span class="Function">specify duration of BGM fade-out</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#play" title="Program Block Only: play (MIDI-file/CD-tracknum)">play</a></span>
			<span class="Function">play specified CD-DA track or MIDI file in a loop</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#playonce" title="Program Block Only: playonce (MIDI-file/CD-tracknum)">playonce</a></span>
			<span class="Function">play specified CD-DA track or MIDI file only once</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#playstop" title="Program Block Only: playstop">playstop</a></span>
			<span class="Function">stop playback of CD track or MIDI file</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#wave" title="Program Block Only: wave (WAV-file)">wave</a></span>
			<span class="Function">play a WAV file only once</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#waveloop" title="Program Block Only: waveloop (WAV-file)">waveloop</a></span>
			<span class="Function">loop WAV file playback</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#wavestop" title="Program Block Only: wavestop">wavestop</a></span>
			<span class="Function">stop WAV file playback</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mp3" title="Program Block Only: mp3 (MP3-file)">mp3</a></span>
			<span class="Function">play compressed music file only once</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mp3loop" title="Program Block Only: mp3loop (MP3-file)">mp3loop</a></span>
			<span class="Function">play compressed music file in a loop</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mp3save" title="Ver.1.97 Program Block Only: mp3save">mp3save</a></span>
			<span class="Function">if game saved during playback, resume playing upon reload</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#dsound" title="Definition Block Only: dsound">dsound</a></span>
			<span class="Function">declare that you are using DirectSound (unnecessary in latest versions)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dwave" title="Program Block Only: dwave (channel-num), (WAV-file)">dwave</a></span>
			<span class="Function">play WAV file using DirectSound only once</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dwaveloop" title="Program Block Only: dwaveloop (channel-num), (WAV-file)">dwaveloop</a></span>
			<span class="Function">loop-play a WAV file using DirectSound</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dwavestop" title="Program Block Only: dwavestop (channel-num)">dwavestop</a></span>
			<span class="Function">stop DirectSound WAV file playback</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dwaveload" title="Ver.1.97 Program Block Only: dwaveloop (channel-num), (WAV-file)">dwaveload</a></span>
			<span class="Function">load WAV file into memory</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dwaveplay" title="Ver.1.97 Program Block Only: dwaveplay (channel-num)">dwaveplay</a></span>
			<span class="Function">play a preloaded WAV file only once</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dwaveplayloop" title="Ver.1.97 Program Block Only: dwaveplayloop (channel-num)">dwaveplayloop</a></span>
			<span class="Function">loop-play a preloaded WAV file</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#stop" title="Program Block Only: stop">stop</a></span>
			<span class="Function">stop all music playback</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mp3stop" title="Ver.2.01 Program Block Only: mp3stop">mp3stop</a></span>
			<span class="Function">stop playback of compressed music</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mp3fadein" title="Ver.2.24 Definition/Program Block: mp3fadein (duration)">mp3fadein</a></span>
			<span class="Function">specify duration of BGM fade-in</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bgm" title="Ver.1.99 Program Block Only: bgm (music-file)">bgm</a></span>
			<span class="Function">play compressed music file in a loop</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bgmonce" title="Ver.1.99 Program Block Only: bgmonce (music-file)">bgmonce</a></span>
			<span class="Function">play compressed music file only once</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bgmstop" title="Ver.2.01 Program Block Only: bgmstop">bgmstop</a></span>
			<span class="Function">stop playback of compressed music</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#bgmfadeout" title="Ver.2.21 Definition/Program Block: bgmfadeout (duration)">bgmfadeout</a></span>
			<span class="Function">specify duration of BGM fade-out</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#bgmfadein" title="Ver.2.24 Definition/Program Block: bgmfadein (duration)">bgmfadein</a></span>
			<span class="Function">specify duration of BGM fade-in</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#loopbgm" title="Ver.2.03 Program Block Only: loopbgm (intro-file), (looped-file)">loopbgm</a></span>
			<span class="Function">play intro, then loop repeatedly</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#loopbgmstop" title="Ver.2.03 Program Block Only: loopbgmstop">loopbgmstop</a></span>
			<span class="Function">stop playback of <b>loopbgm</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mp3vol" title="Ver.1.98 Program Block Only: mp3vol (volume)">mp3vol</a></span>
			<span class="Function">change BGM sound volume</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#chvol" title="Ver.2.00 Program Block Only: chvol (channel-num), (volume)">chvol</a></span>
			<span class="Function">change sound volume of the given <b>dwave</b> channel</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#voicevol" title="Ver.1.98 Program Block Only: voicevol (volume)">voicevol</a></span>
			<span class="Function">change voice sound volume</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#sevol" title="Ver.1.98 Program Block Only: sevol (volume)">sevol</a></span>
			<span class="Function">change SFX sound volume</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bgmvol" title="Ver.2.21 Program Block Only: bgmvol (volume)">bgmvol</a></span>
			<span class="Function">change BGM sound volume</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#v" title="Program Block Only: v(voice-file num):">v</a></span>
			<span class="Function">voice playback, shorthand cmd (<b>wave</b>)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#dv" title="Ver.1.97 Program Block Only: dv(voice-file num):">dv</a></span>
			<span class="Function">voice playback, shorthand cmd (<b>dwave</b>)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mv" title="Ver.2.20 Program Block Only: mv(voice-file num):">mv</a></span>
			<span class="Function">playback an mp3 voice file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#bgmdownmode" title="Ver.2.30 Definition/Program Block: bgmdownmode (0=off/1=on)">bgmdownmode</a></span>
			<span class="Function">toggle turning down BGM volume when voices are played</span>
			<div class="Space"></div>
		</div>
		<a id="category_movieplay"></a>
		<h5>Movie Playback</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#avi" title="Program Block Only: avi (filename), (interruptible:0=no/1=yes)">avi</a></span>
			<span class="Function">playback an AVI file</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#mpegplay" title="Ver.1.97 Program Block Only: mpegplay (filename), (interruptible:0=no/1=yes)">mpegplay</a></span>
			<span class="Function">playback an MPEG movie</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#movie" title="Ver.2.49 Program Block Only: movie (movie-file)[, 'pos', (x1), (y1), (width), (height)][, 'click'][, 'loop'][, 'async']">movie</a></span>
			<span class="Function">play a movie</span>
			<div class="Space"></div>
		</div>
		<a id="category_select"></a>
		<h5>Choices</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#selectcolor" title="Definition Block Only: selectcolor (mouseover-color), (mouseoff-color)">selectcolor</a></span>
			<span class="Function">designate the text colors for choices</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#selectvoice" title="Definition Block Only: selectvoice (choice-entry WAV), (choice-mouseover WAV), (choice-click WAV)">selectvoice</a></span>
			<span class="Function">designate sound(s) to play during choice selection</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#select" title="Program Block Only: select (choice-STR), (label), ... ">select</a></span>
			<span class="Function">create a choice</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#selgosub" title="Program Block Only: selgosub (choice-STR), (label), ... ">selgosub</a></span>
			<span class="Function">create a choice that jumps to a subroutine</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#selnum" title="Program Block Only: selnum (result-var), (choice-STR), ... ">selnum</a></span>
			<span class="Function">create a choice that returns a number based on selection</span>
			<div class="Space"></div>
		</div>
		<a id="category_jump"></a>
		<h5>Jumps</h5>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#goto" title="Definition/Program Block: goto (dest-label)">goto</a></span>
			<span class="Function">jump to designated label</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#skip" title="Definition/Program Block: skip (num-lines)">skip</a></span>
			<span class="Function">skip the next n lines of script</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#gosub" title="Definition/Program Block: gosub (dest-label)">gosub</a></span>
			<span class="Function">call a subroutine</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#return" title="Definition/Program Block: return (dest-label)">return</a></span>
			<span class="Function">return from a subroutine</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#jumpf" title="Program Block Only: jumpf">jumpf</a></span>
			<span class="Function">jump forward to the next ~ symbol</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#jumpb" title="Program Block Only: jumpb">jumpb</a></span>
			<span class="Function">jump back to the previous ~ symbol</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#tablegoto" title="Ver.1.99 Definition/Program Block: tablegoto %(num-var), (*label0)[, (*label1),...]">tablegoto</a></span>
			<span class="Function">jump to a label in the table based on the numeric value</span>
			<div class="Space"></div>
		</div>
		<a id="category_trap"></a>
		<h5>Click Traps</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#trap" title="Program Block Only: trap (dest-label)">trap</a></span>
			<span class="Function">jump to specified label on left click</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#r_trap" title="Ver.2.55 Program Block Only: r_trap (dest-label)">r_trap</a></span>
			<span class="Function">jump to specified label on right click</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lr_trap" title="Program Block Only: lr_trap (dest-label)">lr_trap</a></span>
			<span class="Function">jump to specified label on left or right click</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#trap2" title="Program Block Only: trap2 (dest-label)">trap2</a></span>
			<span class="Function">jump to label on left click when "skip to next choice" mode is set</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lr_trap2" title="Program Block Only: lr_trap2 (dest-label)">lr_trap2</a></span>
			<span class="Function">jump to label on left or right click when "skip to next choice" mode is set</span>
			<div class="Space"></div>
		</div>
		<a id="category_button"></a>
		<h5>Image Buttons</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btndef" title="Program Block Only: btndef (image-file)">btndef</a></span>
			<span class="Function">load image file into button memory buffer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btn" title="Program Block Only: btn (button-num), (top-left X-pos), (top-left Y-pos), (width), (height), (shift X-offset), (shift Y-offset)">btn</a></span>
			<span class="Function">initialize image as button (method 1)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btnwait" title="Program Block Only: btnwait (result-var)">btnwait</a></span>
			<span class="Function">display image button and enter a click-wait state (method 1)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btnwait2" title="Program Block Only: btnwait2 (result-var)">btnwait2</a></span>
			<span class="Function">display image button and enter a click-wait state (method 2)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#spbtn" title="Program Block Only: spbtn (sprite-num), (button-num)">spbtn</a></span>
			<span class="Function">designate a sprite as an image button</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#cellcheckspbtn" title="Ver.1.99 Program Block Only: cellcheckspbtn (sprite-num), (button-num)">cellcheckspbtn</a></span>
			<span class="Function">designate a sprite as a button only if the sprite has at least 2 cells</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getbtntimer" title="Program Block Only: getbtntimer (result-var)">getbtntimer</a></span>
			<span class="Function">acquire how much time passed during <b>btnwait</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btntime" title="Program Block Only: btntime (time-limit)">btntime</a></span>
			<span class="Function">set a time limit for image button functionality</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btntime2" title="Ver.2.00 Program Block Only: btntime2 (time-limit)">btntime2</a></span>
			<span class="Function">same as <b>btntime</b>, but waits for voice to finish</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#exbtn" title="Ver.1.97 Program Block Only: exbtn (sprite-num), (button-num), (control-str)">exbtn</a></span>
			<span class="Function">create a complex button</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#cellcheckexbtn" title="Ver.2.49 Program Block Only: cellcheckexbtn (sprite-num), (button-num), (control-str)">cellcheckexbtn</a></span>
			<span class="Function">create a complex button only if the sprite has at least 2 cells</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#exbtn_d" title="Ver.1.97 Program Block Only: exbtn_d (control-str)">exbtn_d</a></span>
			<span class="Function">specify default behavior for when complex buttons are used</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#transbtn" title="Ver.1.99 Program Block Only: transbtn">transbtn</a></span>
			<span class="Function">ignore transparent areas when creating a button from an image</span>
			<div class="Space"></div>
		</div>
		<a id="category_wait_timer"></a>
		<h5>Wait/Timer</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_bang-d" title="Special Text Command: !d(wait-time)">!d</a></span>
			<span class="Function">wait for the specified time</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_bang-w" title="Special Text Command: !w(wait-time)">!w</a></span>
			<span class="Function">wait for the specified time, ignoring clicks</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#delay" title="Program Block Only: delay (wait-time)">delay</a></span>
			<span class="Function">cause a time delay (method 1)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#wait" title="Program Block Only: wait (wait-time)">wait</a></span>
			<span class="Function">cause a time delay (method 2)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#resettimer" title="Program Block Only: resettimer">resettimer</a></span>
			<span class="Function">reset the internal timer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#waittimer" title="Program Block Only: waittimer (wait-time)">waittimer</a></span>
			<span class="Function">wait until the internal timer reaches the specified time value</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#gettimer" title="Program Block Only: gettimer (time-result-var)">gettimer</a></span>
			<span class="Function">get the value of the internal timer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#spwait" title="Ver.1.97 Program Block Only: spwait (sprite-num)">spwait</a></span>
			<span class="Function">wait until the designated sprite's animation has ended</span>
			<div class="Space"></div>
		</div>
		<a id="category_calc"></a>
		<h5>Variable Manipulation/Calculations</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#stralias" title="Definition Block Only: stralias (name), (str-val)">stralias</a></span>
			<span class="Function">create an alias for a filename or character string</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#numalias" title="Definition Block Only: numalias (name), (num-val)">numalias</a></span>
			<span class="Function">create an alias for a numeric value</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#intlimit" title="Definition Block Only: intlimit (var-num), (min-val), (max-val)">intlimit</a></span>
			<span class="Function">set the allowed range for a numeric variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#dim" title="Ver.1.97 Definition Block Only: dim ?(array-num)[(dim1-len)][(dim2-len)]...">dim</a></span>
			<span class="Function">declare an array variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov" title="Definition/Program Block: mov (num-var), (num-val)">mov</a></span>
			<span class="Function">load a numeric/string variable with a value</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov3" title="Definition/Program Block: mov3 (num-var), (num-val), (num-val), (num-val)">mov3</a></span>
			<span class="Function">load numeric values into 3 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov4" title="Definition/Program Block: mov4 (num-var), (num-val), (num-val), (num-val), (num-val)">mov4</a></span>
			<span class="Function">load numeric values into 4 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov5" title="Definition/Program Block: mov5 (num-var), (num-val), (num-val), (num-val), (num-val), (num-val)">mov5</a></span>
			<span class="Function">load numeric values into 5 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov6" title="Definition/Program Block: mov6 (num-var), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val)">mov6</a></span>
			<span class="Function">load numeric values into 6 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov7" title="Definition/Program Block: mov7 (num-var), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val)">mov7</a></span>
			<span class="Function">load numeric values into 7 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov8" title="Definition/Program Block: mov8 (num-var), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val)">mov8</a></span>
			<span class="Function">load numeric values into 8 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov9" title="Definition/Program Block: mov9 (num-var), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val)">mov9</a></span>
			<span class="Function">load numeric values into 9 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mov10" title="Definition/Program Block: mov10 (num-var), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val), (num-val)">mov10</a></span>
			<span class="Function">load numeric values into 10 consecutive variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#movl" title="Ver.1.97 Definition/Program Block: movl (array-var), (num-val),...">movl</a></span>
			<span class="Function">load a line of numbers into an array</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#add" title="Definition/Program Block: add (num-var), (num-val)">add</a></span>
			<span class="Function">add/concatenate to variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#_plus-sign" title="Ver.2.10 Definition/Program Block: (num)+(num)">+</a></span>
			<span class="Function">do addition/concatenation</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#sub" title="Definition/Program Block: sub (num-var), (num-val)">sub</a></span>
			<span class="Function">subtract a number from a variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#_minus-sign" title="Ver.2.10 Definition/Program Block: (num)-(num)">-</a></span>
			<span class="Function">do subtraction</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#inc" title="Definition/Program Block: inc (num-var)">inc</a></span>
			<span class="Function">increment a variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#dec" title="Definition/Program Block: dec (num-var)">dec</a></span>
			<span class="Function">decrement a variable</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mul" title="Definition/Program Block: mul (num-var), (num-val)">mul</a></span>
			<span class="Function">multiply variable by a number</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#_multiplication-sign" title="Ver.2.10 Definition/Program Block: (num)*(num)">*</a></span>
			<span class="Function">do multiplication</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#div" title="Definition/Program Block: div (num-var), (num-val)">div</a></span>
			<span class="Function">divide variable by a number</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#_division-sign" title="Ver.2.10 Definition/Program Block: (num)/(num)">/</a></span>
			<span class="Function">do division</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mod" title="Definition/Program Block: mod (num-var), (num-val)">mod</a></span>
			<span class="Function">get the remainder (modulo)</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#rnd" title="Definition/Program Block: rnd (num-var), (high-val)">rnd</a></span>
			<span class="Function">generate a random number (method 1)</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#rnd2" title="Definition/Program Block: rnd (num-var), (low-val), (high-val)">rnd2</a></span>
			<span class="Function">generate a random number (method 2)</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#itoa" title="Definition/Program Block: itoa (str-var), (num-val)">itoa</a></span>
			<span class="Function">convert a numeric value into a string</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#itoa2" title="Ver.2.49 Definition/Program Block: itoa (str-var), (num-val)">itoa2</a></span>
			<span class="Function">convert a numeric value into a fullwidth character string</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#atoi" title="Definition/Program Block: atoi (num-var), (str-val)">atoi</a></span>
			<span class="Function">convert a string into a numeric</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#len" title="Ver.1.99 Definition/Program Block: len %(result-var), (str)">len</a></span>
			<span class="Function">find the length of a character string</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mid" title="Ver.1.99 Definition/Program Block: mid $(result-var), (str-val), (start-pos), (num-chars)">mid</a></span>
			<span class="Function">get a substring of the given character string</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#split" title="Ver.2.40 Definition/Program Block: split (str), (delim), (var)[, ...]">split</a></span>
			<span class="Function">split a character string using the given delimiter</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#sin" title="Ver.2.25 Definition/Program Block: sin (num-var), (angle)">sin</a></span>
			<span class="Function">find the sine of the given angle</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#cos" title="Ver.2.25 Definition/Program Block: cos (num-var), (angle)">cos</a></span>
			<span class="Function">find the cosine of the given angle</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#tan" title="Ver.2.25 Definition/Program Block: tan (num-var), (angle)">tan</a></span>
			<span class="Function">find the tangent of the given angle</span>
			<div class="Space"></div>
		</div>
		<a id="category_statement"></a>
		<h5>Conditionals/Loops</h5>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#if" title="Definition/Program Block: if (condition) (command)">if</a></span>
			<span class="Function">evaluate if a condition is true</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#notif" title="Definition/Program Block: notif (condition) (command)">notif</a></span>
			<span class="Function">evaluate if a condition is false</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#cmp" title="Definition/Program Block: cmp (result-var), (str-val1), (str-val2)">cmp</a></span>
			<span class="Function">compare character strings</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#fchk" title="Definition/Program Block: fchk (filename)">fchk</a></span>
			<span class="Function">check whether or not a image file has been loaded (and tagged)</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#lchk" title="Definition/Program Block: lchk (label)">lchk</a></span>
			<span class="Function">check whether or not a label has been accessed</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#for" title="Definition/Program Block: for (counter-var)=(init-val) to (end-val)[ step (inc-val)]">for</a></span>
			<span class="Function">loop instruction</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#next" title="Definition/Program Block: next">next</a></span>
			<span class="Function">end a loop</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#break" title="Definition/Program Block: break">break</a></span>
			<span class="Function">break out of a <b>for</b> loop</span>
			<div class="Space"></div>
		</div>
		<a id="category_rclick"></a>
		<h5>Right-Click Functionality</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#rmenu" title="Definition Block Only: rmenu (str-val), (menu-name)[, ...]">rmenu</a></span>
			<span class="Function">initialize menu to display upon right-click</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#menusetwindow" title="Definition Block Only: menusetwindow (char-width), (char-height), (spacing-X), (spacing-Y), (boldface:0=off/1=on), (drop-shadow:0=off/1=on), (window-color)">menusetwindow</a></span>
			<span class="Function">initialize window for right-click menu</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#savename" title="Definition Block Only: savename (save-title), (load-title), (line-heading)">savename</a></span>
			<span class="Function">specify names to use for savefiles in right-click menu</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#menuselectcolor" title="Definition Block Only: menuselectcolor (mouseover-color), (mouseoff-color), (no-savefile-color)">menuselectcolor</a></span>
			<span class="Function">designate the text colors for choices</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#menuselectvoice" title="Definition Block Only: menuselectvoice (menu-open-sound), (cancel-sound), (mouseover-sound), (click-sound), (error-sound), ('yes'-sound), ('no'-sound)">menuselectvoice</a></span>
			<span class="Function">specify right-click menu system sounds</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#rlookback" title="Definition Block Only: rlookback">rlookback</a></span>
			<span class="Function">jump to Log Mode upon right-click</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#rgosub" title="Ver.(undoc) Definition Block Only: rgosub *(label)">rgosub</a></span>
			<span class="Function">set a routine to call upon right-click</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#roff" title="Definition Block Only: roff">roff</a></span>
			<span class="Function">ignore right-clicks</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#rmode" title="Program Block Only: rmode (flag:0=off/1=on)">rmode</a></span>
			<span class="Function">toggle availability of right-click menu</span>
			<div class="Space"></div>
		</div>
		<a id="category_lookback"></a>
		<h5>Log Mode</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#lookbackbutton" title="Definition Block Only: lookbackbutton (pageup-mouseover), (pageup-mouseoff), (pagedown-mouseover), (pagedown-mouseoff)">lookbackbutton</a></span>
			<span class="Function">specify button images for Log Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#lookbackcolor" title="Definition Block Only: lookbackcolor (text-color)">lookbackcolor</a></span>
			<span class="Function">designate text color for Log Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#lookbackvoice" title="Definition Block Only: lookbackvoice (sound-file)">lookbackvoice</a></span>
			<span class="Function">play a sound when paging through Log Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#lookbacksp" title="Ver.1.99 Definition Block Only: lookbacksp (pageup-sprite), (pagedown-sprite)">lookbacksp</a></span>
			<span class="Function">use sprites instead of the default Log Mode buttons</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#maxkaisoupage" title="Ver.2.01 Definition Block Only: maxkaisoupage (max-pages)">maxkaisoupage</a></span>
			<span class="Function">set maximum number of pages to store for Log Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lookbackflush" title="Program Block Only: lookbackflush">lookbackflush</a></span>
			<span class="Function">clear Log Mode buffer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lookbackoff" title="Program Block Only: lookbackon">lookbackoff</a></span>
			<span class="Function">stop accumulating Log Mode data</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lookbackon" title="Program Block Only: lookbackon">lookbackon</a></span>
			<span class="Function">begin accumulating Log Mode data</span>
			<div class="Space"></div>
		</div>
		<a id="category_kidokuskip"></a>
		<h5>Skip Mode</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#kidokuskip" title="Definition Block Only: kidokuskip">kidokuskip</a></span>
			<span class="Function">enable 'stop at unread' in Skip Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#mode_wave_demo" title="Definition Block Only: mode_wave_demo">mode_wave_demo</a></span>
			<span class="Function">play WAV files even during Skip Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#skipoff" title="Program Block Only: skipoff">skipoff</a></span>
			<span class="Function">turn off Skip Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#kidokumode" title="Ver.1.97 Program Block Only: kidokumode (stop-at-unread:0=no/1=yes)">kidokumode</a></span>
			<span class="Function">toggle Skip Mode's 'stop at unread' setting</span>
			<div class="Space"></div>
		</div>
		<a id="category_log_global"></a>
		<h5>File Access Logs/Global Variables</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#filelog" title="Definition Block Only: filelog">filelog</a></span>
			<span class="Function">enable file access logging</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#globalon" title="Definition Block Only: globalon">globalon</a></span>
			<span class="Function">enable use of global variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#labellog" title="Definition Block Only: labellog">labellog</a></span>
			<span class="Function">enable label access logging</span>
			<div class="Space"></div>
		</div>
		<a id="category_saveload"></a>
		<h5>Save/Load</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#savenumber" title="Definition Block Only: savenumber (max-savenum)">savenumber</a></span>
			<span class="Function">set the maximum number of saves allowed</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#savedir" title="Ver.2.49 Definition Block Only: savedir (savedata-folder)">savedir</a></span>
			<span class="Function">store save data in the designated folder</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#loadgame" title="Program Block Only: loadgame (save-num)">loadgame</a></span>
			<span class="Function">load game from the designated savefile</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savegame" title="Program Block Only: savegame (save-num)">savegame</a></span>
			<span class="Function">save game in the designated savefile</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savegame2" title="Ver.2.60 Program Block Only: savegame2 (save-num), (str)">savegame2</a></span>
			<span class="Function">store a particular character string along with the savefile</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getsavestr" title="Ver.2.60 Program Block Only: getsavestr (str-var), (save-num)">getsavestr</a></span>
			<span class="Function">retrieve the string stored with a savefile using <b>savegame2</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savefileexist" title="Program Block Only: savefileexist (result-var), (save-num)">savefileexist</a></span>
			<span class="Function">check whether or not a savefile exists</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#saveon" title="Program Block Only: saveon">saveon</a></span>
			<span class="Function">turn on Save Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#saveoff" title="Program Block Only: saveoff">saveoff</a></span>
			<span class="Function">turn off Save Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#loadgosub" title="Ver.2.40 Definition Block Only: loadgosub *(label)">loadgosub</a></span>
			<span class="Function">set a routine to call immediately after loading a game</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#errorsave" title="Ver.1.99 Definition Block Only: errorsave">errorsave</a></span>
			<span class="Function">automatically save game status in savefile 999 when an error occurs</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#autosaveoff" title="Ver.2.93 Definition Block Only: autosaveoff">autosaveoff</a></span>
			<span class="Function">disable (most) automatic save points</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savepoint" title="Ver.2.93 Program Block Only: savepoint">savepoint</a></span>
			<span class="Function">update the save point</span>
			<div class="Space"></div>
		</div>
		<a id="category_additional"></a>
		<h5>Miscellaneous</h5>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#mesbox" title="Definition/Program Block: mesbox (message-str), (title-str)">mesbox</a></span>
			<span class="Function">create a message box</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#okcancelbox" title="Ver.2.47 Definition/Program Block: okcancelbox %(result-var), (message-str), (title-str)">okcancelbox</a></span>
			<span class="Function">create an OK/Cancel dialog box</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#yesnobox" title="Ver.2.47 Definition/Program Block: yesnobox %(result-var), (message-str), (title-str)">yesnobox</a></span>
			<span class="Function">create a Yes/No dialog box</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#inputstr" title="Program Block Only: inputstr (result-var), (message-str), (max-len), (force-fullwidth:0=no/1=yes), (window-width), (window-height), (textarea-width), (textarea-height)">inputstr</a></span>
			<span class="Function">wait for player to give character input (method 1)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#inputnum" title="Ver.(undoc) Program Block Only: inputnum (result-var), (message-str), (window-width), (window-height), (input-width), (input-height)">inputnum</a></span>
			<span class="Function">wait for player to give numeric input</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#input" title="Program Block Only: input (result-var), (message-str), (default-str), (max-len), (force-fullwidth:0=no/1=yes)">input</a></span>
			<span class="Function">wait for player to give character input (method 2)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textfield" title="Ver.2.49 Program Block Only: input (result-var), (top-left X-pos), (top-left Y-pos), (bottom-right X-pos), (bottom-right Y-pos), (1byte-char-width), (char-height), (force-fullwidth:0=no/1=yes)">textfield</a></span>
			<span class="Function">create a text input window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#clickpos" title="Program Block Only: clickpos (X-pos-var), (Y-pos-var)">clickpos</a></span>
			<span class="Function">retrieve the cursor coordinates at the last click</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#systemcall" title="Program Block Only: systemcall (menu-function)">systemcall</a></span>
			<span class="Function">perform a function as though called from the right-click menu</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#fileexist" title="Ver.2.01 Program Block Only: fileexist (num-var), (file-name)">fileexist</a></span>
			<span class="Function">check whether or not a file exists</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#fileremove" title="Ver.(undoc) Program Block Only: fileremove (file-name)">fileremove</a></span>
			<span class="Function">delete a file</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#labelexist" title="Ver.(undoc) Program Block Only: labelexist %(result-var), *(label)">labelexist</a></span>
			<span class="Function">check whether or not a label exists</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#noloaderror" title="Ver.(undoc) Definition Block Only: noloaderror">noloaderror</a></span>
			<span class="Function">don't generate an error when an image or sound can't be loaded</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#minimizewindow" title="Ver.2.00 Program Block Only: minimizewindow">minimizewindow</a></span>
			<span class="Function">minimize the game window</span>
			<div class="Space"></div>
		</div>
		<a id="category_specialmode"></a>
		<h5>Special Mode Settings</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#automode" title="Definition Block Only: automode">automode</a></span>
			<span class="Function">allow use of Auto Mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#automode_time" title="Definition Block Only: automode_time (delay-time)">automode_time</a></span>
			<span class="Function">specify delay time in Auto Mode when sounds aren't being played</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defvoicevol" title="Ver.1.97 Definition Block Only: defvoicevol (default-vol)">defvoicevol</a></span>
			<span class="Function">set default volume for voices (dwave channel 0)</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defsevol" title="Ver.1.97 Definition Block Only: defsevol (default-vol)">defsevol</a></span>
			<span class="Function">set default volume for SFX</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defmp3vol" title="Ver.1.97 Definition Block Only: defmp3vol (default-vol)">defmp3vol</a></span>
			<span class="Function">set default volume for mp3 files (BGM channel)</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defbgmvol" title="Ver.2.37 Definition Block Only: defbgmvol (default-vol)">defbgmvol</a></span>
			<span class="Function">set default volume for BGM channel</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#mode_saya" title="Definition Block Only: mode_saya">mode_saya</a></span>
			<span class="Function">use special mode created for "Saya ~Labyrinth of Immorality~"</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#mode_ext" title="Definition Block Only: mode_ext">mode_ext</a></span>
			<span class="Function">allow use of Auto Mode created for "Gin'iro"</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#mode800" title="Definition Block Only: ;mode800">mode800</a></span>
			<span class="Function">set screen size to 800x600</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#mode400" title="Ver.2.01 Definition Block Only: ;mode400">mode400</a></span>
			<span class="Function">set screen size to 400x300</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#mode320" title="Ver.2.01 Definition Block Only: ;mode320">mode320</a></span>
			<span class="Function">set screen size to 320x240</span>
			<div class="Space"></div>
		</div>
		<div class="Word S">
			<span class="WordLiteral"><a href="#value" title="Ver.2.25 Reserved Syntax: ;value(global-start-num)">value</a></span>
			<span class="Function">change the starting number for global variables</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#gameid" title="Definition Block Only: ;gameid (game-id)">gameid</a></span>
			<span class="Function">give a name to use for an ONScr game save folder</span>
			<div class="Space"></div>
		</div>
		<a id="category_plugin_archive"></a>
		<h5>Plugins/Archives</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#soundpressplgin" title="Definition Block Only: soundpressplgin (sound-plugin-spec)">soundpressplgin</a></span>
			<span class="Function">load compressed audio functionality via plugin/dll (can just use DirectSound instead)</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#spi" title="Definition Block Only: spi (image-plugin-spec)">spi</a></span>
			<span class="Function">load compressed image functionality via plugin/dll</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#arc" title="Definition Block Only: arc (archive-plugin-spec)">arc</a></span>
			<span class="Function">use specified archive</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#nsa" title="Definition Block Only: nsa">nsa</a></span>
			<span class="Function">enable NSA archive access</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#nsadir" title="Ver.1.97 Definition Block Only: nsadir (folder-name)">nsadir</a></span>
			<span class="Function">designate folder where NSA archives are located</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#addnsadir" title="Ver.2.20 Definition/Program Block: addnsadir (folder-name)">addnsadir</a></span>
			<span class="Function">add a directory to check for NSA archives</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#exec_dll" title="Ver.2.03 Definition/Program Block: exec_dll (DLL-file/param-str)">exec_dll</a></span>
			<span class="Function">call a DLL</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#getret" title="Ver.2.03 Definition/Program Block: getret (result-var)">getret</a></span>
			<span class="Function">retrieve value returned from a DLL</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#setlayer" title="Ver.2.03 Definition Block Only: setlayer (layer-num), (update-interval), (DLL-file)">setlayer</a></span>
			<span class="Function">create a layer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#layermessage" title="Ver.2.03 Program Block Only: setlayer (layer-num), (message-str)">layermessage</a></span>
			<span class="Function">send a message to a layer</span>
			<div class="Space"></div>
		</div>
		<a id="category_information"></a>
		<h5>Console</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#versionstr" title="Definition Block Only: versionstr (first-line), (second-line)">versionstr</a></span>
			<span class="Function">change the version information</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#caption" title="Definition/Program Block: caption (title-str)">caption</a></span>
			<span class="Function">change the game window title</span>
			<div class="Space"></div>
		</div>
		<a id="category_getinfo"></a>
		<h5>Data Acquisition</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#date" title="Program Block Only: date (year-var), (month-var), (date-var)">date</a></span>
			<span class="Function">retrieve the current year, month and date</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#time" title="Program Block Only: time (hour-var), (minute-var), (second-var)">time</a></span>
			<span class="Function">retrieve the current hour, minute and second</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savetime" title="Ver.1.97 Program Block Only: savetime (save-num), (month-var), (date-var), (hour-var), (minute-var)">savetime</a></span>
			<span class="Function">retrieve the date and time of the given savefile</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getversion" title="Ver.1.97 Program Block Only: getversion (num-var)">getversion</a></span>
			<span class="Function">get the version number of the current NScripter build</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getwindowsize" title="Ver.2.54 Program Block Only: getwindowsize (width-var), (height-var)">getwindowsize</a></span>
			<span class="Function">get the area of the window client</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#getreg" title="Definition/Program Block: getreg (str-var), (key-str), (variable-str)">getreg</a></span>
			<span class="Function">read from the registry</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#getini" title="Definition/Program Block: getini (str-var), (ini-file), (section-str), (key-str)">getini</a></span>
			<span class="Function">read from an ini file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#readfile" title="Ver.2.40 Definition/Program Block: readfile $(result-var), (filename)">readfile</a></span>
			<span class="Function">read file contents into a string variable</span>
			<div class="Space"></div>
		</div>
		<a id="category_windowmenu"></a>
		<h5>Window Menubar</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#killmenu" title="Definition Block Only: killmenu (item-pos)">killmenu</a></span>
			<span class="Function">erase a menubar item</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#resetmenu" title="Ver.1.98 Definition Block Only: resetmenu">resetmenu</a></span>
			<span class="Function">clear menubar for definition of a custom menu</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#insertmenu" title="Ver.1.98 Definition Block Only: insertmenu (str), (function-code)[, (level)]">insertmenu</a></span>
			<span class="Function">add a menubar menu option</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#deletemenu" title="Ver.2.03 Definition Block Only: deletemenu">deletemenu</a></span>
			<span class="Function">remove the Windows menubar from NScripter</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defaultspeed" title="Definition Block Only: defaultspeed (slow), (medium), (fast)">defaultspeed</a></span>
			<span class="Function">designate text display speeds selectable via the menubar</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_bang-sd" title="Special Text Command: !sd">!sd</a></span>
			<span class="Function">use a text display speed provided via <b>defaultspeed</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_full" title="Program Block Only: menu_full">menu_full</a></span>
			<span class="Function">enter fullscreen mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_window" title="Program Block Only: menu_window">menu_window</a></span>
			<span class="Function">enter windowed mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#isfull" title="Ver.2.03 Program Block Only: isfull %(result-var)">isfull</a></span>
			<span class="Function">retrieve whether or not fullscreen mode is active</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_click_page" title="Program Block Only: menu_click_page">menu_click_page</a></span>
			<span class="Function">enter single-page text display mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_click_def" title="Program Block Only: menu_click_def">menu_click_def</a></span>
			<span class="Function">enter default text display mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_dwavvol" title="Ver.1.97 Program Block Only: menu_dwavvol">menu_dwavvol</a></span>
			<span class="Function">display the volume setting dialog window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_waveon" title="ONScr-EN Ver.20091230 Program Block Only: menu_waveon">menu_waveon</a></span>
			<span class="Function">enable main volume</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#menu_waveoff" title="ONScr-EN Ver.20091230 Program Block Only: menu_waveoff">menu_waveoff</a></span>
			<span class="Function">disable (mute) main volume</span>
			<div class="Space"></div>
		</div>
		<a id="category_systemcustomize"></a>
		<h5>System Customization</h5>
		<div class="Word S">
			<span class="WordLiteral"><a href="#_customsel-label" title="Reserved Syntax: *customsel">*customsel</a></span>
			<span class="Function">a label that interacts with the <b>csel</b> command</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#csel" title="Program Block Only: csel (choice-str), (label), [...]">csel</a></span>
			<span class="Function">give choices to present via system customization</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#cselbtn" title="Program Block Only: cselbtn (choice-index), (button-num), (X-pos), (Y-pos)">cselbtn</a></span>
			<span class="Function">create custom buttons for choice text</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#cselgoto" title="Program Block Only: cselgoto (choice-index)">cselgoto</a></span>
			<span class="Function">jump to a label created by <b>csel</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getcselnum" title="Program Block Only: getcselnum (num-var)">getcselnum</a></span>
			<span class="Function">get the total number of <b>csel</b> choices</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getcselstr" title="Ver.2.34 Program Block Only: getcselstr $(result-var), (choice-index)">getcselstr</a></span>
			<span class="Function">get the character string of a <b>csel</b> choice</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#nextcsel" title="Ver.2.80 Program Block Only: getcselstr %(result-var)">nextcsel</a></span>
			<span class="Function">returns whether or not the next command is <b>csel</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#selectbtnwait" title="Program Block Only: selectbtnwait (num-var)">selectbtnwait</a></span>
			<span class="Function">enter click wait state within a <b>*customsel</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#textgosub" title="Definition Block Only: textgosub (custom-wait-label)">textgosub</a></span>
			<span class="Function">define a label for handling system customization during click wait states</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textbtnwait" title="Program Block Only: textbtnwait (num-var)">textbtnwait</a></span>
			<span class="Function">enter click wait state within a custom wait routine</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getskipoff" title="Ver.2.49 Program Block Only: getskipoff">getskipoff</a></span>
			<span class="Function">retrieve skipoff keystrokes at <b>textbtnwait</b></span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getmouseover" title="Ver.2.49 Program Block Only: getmouseover (min-button-num), (max-button-num)">getmouseover</a></span>
			<span class="Function">return on mouseover of buttons at a button wait</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#checkkey" title="Ver.2.92 Program Block Only: checkkey %(return-var), (key-type)">checkkey</a></span>
			<span class="Function">check for a specified keypress</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#texec" title="Program Block Only: texec">texec</a></span>
			<span class="Function">remove text for a page-wait condition</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#texec2" title="Ver.2.82 Program Block Only: texec2">texec2</a></span>
			<span class="Function">remove text for a page-wait condition (method 2)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getcursorpos" title="Program Block Only: getcursorpos (X-pos-var), (Y-pos-var)">getcursorpos</a></span>
			<span class="Function">get current position of text cursor</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getcursorpos2" title="Ver.2.92 Program Block Only: getcursorpos2 (X-coord-var), (Y-coord-var)">getcursorpos2</a></span>
			<span class="Function">get top-left pixel coordinates of the last text character</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#isskip" title="Ver.2.20 Program Block Only: isskip %(return-var)">isskip</a></span>
			<span class="Function">get current progress mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#ispage" title="Ver.2.49 Program Block Only: ispage %(return-var)">ispage</a></span>
			<span class="Function">retrieve whether or not in a new page clickwait</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#defsub" title="Ver.2.40 Definition Block Only: defsub (label-name)">defsub</a></span>
			<span class="Function">create a user-defined command name</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#getparam" title="Ver.2.40 Definition/Program Block: getparam (arg-var)[, ...]">getparam</a></span>
			<span class="Function">retrieve the parameters given to a user-defined command</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#luacall" title="Ver.2.93 Definition Block Only: luacall (sysfunc-name)">luacall</a></span>
			<span class="Function">replace default NScripter functionality with a Lua callback</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#luasub" title="Ver.2.93 Definition Block Only: luasub (cmd-name)">luasub</a></span>
			<span class="Function">create a user-defined instruction that calls a Lua function</span>
			<div class="Space"></div>
		</div>
		<a id="category_screenshot"></a>
		<h5>Screenshot</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getscreenshot" title="Ver.2.25 Program Block Only: getscreenshot (X-size), (Y-size)">getscreenshot</a></span>
			<span class="Function">grab a screenshot</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savescreenshot" title="Ver.2.25 Program Block Only: savescreenshot (filename)">savescreenshot</a></span>
			<span class="Function">save a screenshot image</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#savescreenshot2" title="Ver.2.30 Program Block Only: savescreenshot2 (filename)">savescreenshot2</a></span>
			<span class="Function">save a screenshot image</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#deletescreenshot" title="Ver.2.30 Program Block Only: deletescreenshot">deletescreenshot</a></span>
			<span class="Function">remove a screenshot image from memory</span>
			<div class="Space"></div>
		</div>
		<a id="category_input"></a>
		<h5>Button Extensions</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btnarea" title="Ver.1.97 Program Block Only: btnarea (area Y-axis)">btnarea</a></span>
			<span class="Function">set an area for detecting mouse cursor entry</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btndown" title="Ver.1.97 Program Block Only: btndown (flag)">btndown</a></span>
			<span class="Function">set to return from button command while mouse button is pressed</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#isdown" title="Ver.1.97 Program Block Only: isdown %(result-var)">isdown</a></span>
			<span class="Function">return whether or not the mouse button is pressed</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getmousepos" title="Ver.1.97 Program Block Only: getmousepos %(X-pos), %(Y-pos)">getmousepos</a></span>
			<span class="Function">retrieve mouse cursor position</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#spclclk" title="Ver.1.99 Program Block Only: spclclk">spclclk</a></span>
			<span class="Function">set the Spacebar to work the same as a left-click</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#usewheel" title="Ver.1.97 Definition Block Only: usewheel">usewheel</a></span>
			<span class="Function">have button commands detect mouse wheel movement</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#useescspc" title="Ver.1.99 Definition Block Only: useescspc">useescspc</a></span>
			<span class="Function">have button commands detect Esc and Spacebar keypresses</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getcursor" title="Ver.2.00 Program Block Only: getcursor">getcursor</a></span>
			<span class="Function">have button commands detect left/right/up/down arrow keys</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getenter" title="Ver.2.00 Program Block Only: getenter">getenter</a></span>
			<span class="Function">have button commands detect Enter key</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#gettab" title="Ver.2.00 Program Block Only: gettab">gettab</a></span>
			<span class="Function">have button commands detect Tab key</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getfunction" title="Ver.2.00 Program Block Only: getfunction">getfunction</a></span>
			<span class="Function">have button commands detect Function keys</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getpage" title="Ver.2.20 Program Block Only: getpage">getpage</a></span>
			<span class="Function">have button commands detect PageUp/PageDown keys</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getinsert" title="Ver.2.25 Program Block Only: getinsert">getinsert</a></span>
			<span class="Function">have button commands detect Insert key</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getzxc" title="Ver.2.25 Program Block Only: getzxc">getzxc</a></span>
			<span class="Function">have button commands detect Z/X/C keys</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getmclick" title="Ver.2.94 Program Block Only: getmclick">getmclick</a></span>
			<span class="Function">detect middle-button mouse clicks</span>
			<div class="Space"></div>
		</div>
		<a id="category_ruby"></a>
		<h5>Ruby Text</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_parens" title="Ver.2.03 Special Text Command: '(main-text/ruby-text)'">()</a></span>
			<span class="Function">produce ruby text</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#rubyoff" title="Ver.2.30 Definition/Program Block: rubyoff">rubyoff</a></span>
			<span class="Function">turn off ruby mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#rubyon" title="Ver.2.30 Definition/Program Block: rubyon [(ruby-size-X), (ruby-size-Y), (ruby-font)]">rubyon</a></span>
			<span class="Function">enter ruby mode</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#rubyon2" title="Ver.2.80 Program Block Only: rubyon2 (ruby-size-X), (ruby-size-Y)">rubyon2</a></span>
			<span class="Function">enter this ruby mode only when ruby text appears</span>
			<div class="Space"></div>
		</div>
		<a id="category_draw"></a>
		<h5>Demo Draw Commands</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#draw" title="Ver.2.31 Program Block Only: draw">draw</a></span>
			<span class="Function">send images created via demo draw commands to the screen</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawclear" title="Ver.2.31 Program Block Only: drawclear">drawclear</a></span>
			<span class="Function">paint the screen black</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawfill" title="Ver.2.31 Program Block Only: drawfill (red-level), (green-level), (blue-level)">drawfill</a></span>
			<span class="Function">paint over the screen with a specific color</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawbg" title="Ver.2.31 Program Block Only: drawbg">drawbg</a></span>
			<span class="Function">draw the background to the screen</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawbg2" title="Ver.2.31 Program Block Only: drawbg2 (BG-center-X-pos), (BG-center-Y-pos), (X-scale), (Y-scale), (rotation)">drawbg2</a></span>
			<span class="Function">draw the background to the screen in a special manner</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawtext" title="Ver.2.31 Program Block Only: drawtext">drawtext</a></span>
			<span class="Function">draw the text window</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawsp" title="Ver.2.31 Program Block Only: drawsp (sprite-num), (cell-num), (opacity), (top-left-X-pos), (top-left-Y-pos)">drawsp</a></span>
			<span class="Function">draw a sprite</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawsp2" title="Ver.2.31 Program Block Only: drawsp2 (sprite-num), (cell-num), (opacity), (center-X-pos), (center-Y-pos), (X-scale), (Y-scale), (rotation)">drawsp2</a></span>
			<span class="Function">draw a sprite (scaled and rotated)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#drawsp3" title="Ver.2.60 Program Block Only: drawsp3 (sprite-num), (cell-num), (opacity), (top-left-X-pos), (top-right-Y-pos), (matrix-c11), (matrix-c12), (matrix-c21), (matrix-c22)">drawsp3</a></span>
			<span class="Function">draw a sprite with linear transformation</span>
			<div class="Space"></div>
		</div>
		<a id="category_logcustomize"></a>
		<h5>Log Mode Customization</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#checkpage" title="Ver.2.49 Program Block Only: checkpage %(result-var), (backlog-page-num)">checkpage</a></span>
			<span class="Function">check whether a backlog page is available</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getlog" title="Ver.2.49 Program Block Only: getlog $(result-var), (backlog-page-num)">getlog</a></span>
			<span class="Function">get the character string for a backlog page</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#logsp" title="Ver.2.49 Program Block Only: logsp (sprite-num), (log-text), (top-left-X-pos), (top-left-Y-pos)[, (color)[,...]]">logsp</a></span>
			<span class="Function">create a sprite from backlog text</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#logsp2" title="Ver.2.49 Program Block Only: logsp2 (sprite-num), (log-text), (top-left-X-pos), (top-left-Y-pos), (char-width), (char-height), (spacing-X), (spacing-Y)[, (color)[,...]]">logsp2</a></span>
			<span class="Function">create a sprite from backlog text with custom text size</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#getlogtext" title="Ver.2.70 Program Block Only: getlogtext (string-var), (backlog-page-num)">getlogtext</a></span>
			<span class="Function">get the character string for a backlog page (for use with <b>strsp</b>)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#gettaglog" title="Ver.2.72 Program Block Only: gettaglog (string-var), (backlog-page-num)">gettaglog</a></span>
			<span class="Function">get the last pretext tag of a backlog page</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#texthide" title="Ver.2.49 Program Block Only: texthide">texthide</a></span>
			<span class="Function">hide text while leaving the text window visible</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textshow" title="Ver.2.49 Program Block Only: textshow">textshow</a></span>
			<span class="Function">reshow text hidden with <b>texthide</b></span>
			<div class="Space"></div>
		</div>
		<a id="category_tag"></a>
		<h5>Pretext Tags</h5>
		<div class="Word F">
			<span class="WordLiteral"><a href="#pretextgosub" title="Ver.2.46 Definition Block Only: pretextgosub *(label)">pretextgosub</a></span>
			<span class="Function">set a routine to jump to just before text display</span>
			<div class="Space"></div>
		</div>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_squarebrackets" title="Ver.2.46 Special Text Command: [tag-data]">[]</a></span>
			<span class="Function">specify tag data available to a <b>pretextgosub</b> routine</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#gettag" title="Ver.2.46 Definition/Program Block: gettag (var)[,...]">gettag</a></span>
			<span class="Function">use within a <b>pretextgosub</b> routine to get tag data</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#indent" title="Ver.2.46 Program Block Only: indent (num-indent-chars)">indent</a></span>
			<span class="Function">when linebreaking, indent the next line by the given amount</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#pagetag" title="Ver.(undoc) Definition Block Only: pagetag">pagetag</a></span>
			<span class="Function">only process pretext tags at the start of a page</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#zenkakko" title="Ver.(undoc) Definition Block Only: zenkakko">zenkakko</a></span>
			<span class="Function">allow use of ?? as pretext tag brackets</span>
			<div class="Space"></div>
		</div>
		<a id="category_support"></a>
		<h5>Development Support</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bmpcut" title="Program Block Only: bmpcut (image-file), (num-horiz-pieces), (num-vert-pieces)">bmpcut</a></span>
			<span class="Function">split a BMP file into multiple pieces while preserving the original</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#bw2a" title="Definition/Program Block: bw2a (image-filename-without-ext)">bw2a</a></span>
			<span class="Function">generate an NScripter alpha image</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#bw2a3" title="Ver.2.49 Definition/Program Block: bw2a3 (image-filename)">bw2a3</a></span>
			<span class="Function">generate an NScripter alpha image</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#chainbmp" title="Ver.2.20 Definition/Program Block: chainbmp (image-file)">chainbmp</a></span>
			<span class="Function">glue image files together</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#createdummy" title="Ver.2.20 Definition Block Only: createdummy (dummy-file)">createdummy</a></span>
			<span class="Function">create a dummy image file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#debuglog" title="Ver.2.61 Definition/Program Block: debuglog (log-use-flag)">debuglog</a></span>
			<span class="Function">log debug messages</span>
			<div class="Space"></div>
		</div>
		<a id="category_execute"></a>
		<h5>External Command Execution</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#shell" title="Program Block Only: shell (external-file/url)">shell</a></span>
			<span class="Function">opens an external program, file, or URL via Explorer</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#winexec" title="Program Block Only: winexec (executable-file), (sync-flag)">winexec</a></span>
			<span class="Function">execute an external program</span>
			<div class="Space"></div>
		</div>
		<a id="category_csvfile"></a>
		<h5>CSV File Manipulation</h5>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#csvopen" title="Ver.2.63 Definition/Program Block: csvopen (csv-file), (mode)">csvopen</a></span>
			<span class="Function">open a CSV file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#csvread" title="Ver.2.63 Definition/Program Block: csvread (data-var)[,...]">csvread</a></span>
			<span class="Function">read data from an open CSV file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#csvwrite" title="Ver.2.63 Definition/Program Block: csvwrite (data-value)[,...]">csvwrite</a></span>
			<span class="Function">write data to an open CSV file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#csveof" title="Ver.2.63 Definition/Program Block: csveof %(result-var)">csveof</a></span>
			<span class="Function">detect whether or not at the end of an open CSV file</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#csvclose" title="Ver.2.63 Definition/Program Block: csvclose">csvclose</a></span>
			<span class="Function">close an open CSV file</span>
			<div class="Space"></div>
		</div>
		<a id="category_textbutton"></a>
		<h5>Text Buttons</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_anglebrackets" title="Special Text Command: &lt;[textbtn-num]btn-text&gt;">&lt;&gt;</a></span>
			<span class="Function">set a text button</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#linkcolor" title="Ver.2.65 Definition/Program Block: linkcolor #rrggbb,#rrggbb">linkcolor</a></span>
			<span class="Function">set textbutton colors</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textbtnstart" title="Ver.2.65 Program Block Only: textbtnstart (start-num)">textbtnstart</a></span>
			<span class="Function">specify starting number for unnumbered textbuttons</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#gettextbtnstr" title="Ver.2.65 Program Block Only: gettextbtnstr (string-var), (textbtn-num)">gettextbtnstr</a></span>
			<span class="Function">retrieve the text of a particular textbutton</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#erasetextbtn" title="Ver.2.65 Program Block Only: erasetextbtn">erasetextbtn</a></span>
			<span class="Function">clear a pressed textbutton</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textexbtn" title="Ver.2.65 Program Block Only: textexbtn (textbtn-num), (control-str)">textexbtn</a></span>
			<span class="Function">create a complex textbutton (similar to <b>exbtn</b>)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#textbtnoff" title="Ver.2.74 Program Block Only: textbtnoff">textbtnoff</a></span>
			<span class="Function">inactivate textbuttons</span>
			<div class="Space"></div>
		</div>
		<a id="category_sprite_ex"></a>
		<h5>Extended Sprites</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsp2" title="Ver.2.80 Program Block Only: lsp2 (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsp2</a></span>
			<span class="Function">load an extended sprite into memory</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsph2" title="Ver.2.80 Program Block Only: lsph2 (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsph2</a></span>
			<span class="Function">load an extended sprite into memory (hidden)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsp2add" title="Ver.2.80 Program Block Only: lsp2add (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsp2add</a></span>
			<span class="Function">load an extended sprite using additive composition</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsph2add" title="Ver.2.80 Program Block Only: lsph2add (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsph2add</a></span>
			<span class="Function">load an extended sprite using additive composition (hidden)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsp2sub" title="Ver.2.93 Program Block Only: lsp2sub (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsp2sub</a></span>
			<span class="Function">load an extended sprite using subtractive composition</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsph2sub" title="Ver.(undoc) Program Block Only: lsph2sub (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsph2sub</a></span>
			<span class="Function">load an extended sprite using subtractive composition (hidden)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#csp2" title="Ver.2.80 Program Block Only: csp2 (ex_sprite-num)">csp2</a></span>
			<span class="Function">delete extended sprite from memory</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#vsp2" title="Ver.2.80 Program Block Only: vsp2 (ex_sprite-num), (visible:0=no/1=yes)">vsp2</a></span>
			<span class="Function">toggle display of a loaded extended sprite</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#msp2" title="Ver.2.80 Program Block Only: msp2 (ex_sprite-num), (X-offset), (Y-offset), (X-scale-offset), (Y-scale-offset), (rotation-offset)[, (opacity-offset)]">msp2</a></span>
			<span class="Function">change extended sprite position (relative)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#amsp2" title="Ver.2.80 Program Block Only: amsp2 (ex_sprite-num), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">amsp2</a></span>
			<span class="Function">change extended sprite position (absolute)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#allsp2hide" title="Ver.2.80 Program Block Only: allsp2hide">allsp2hide</a></span>
			<span class="Function">hide all extended sprites at the same time</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#allsp2resume" title="Ver.2.80 Program Block Only: allsp2resume">allsp2resume</a></span>
			<span class="Function">redisplay extended sprites hidden with <b>allsp2hide</b></span>
			<div class="Space"></div>
		</div>
		<a id="category_button_ex"></a>
		<h5>New Button Processing</h5>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bclear" title="Ver.2.93 Program Block Only: bclear">bclear</a></span>
			<span class="Function">clear button definitions</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bsp" title="Ver.2.93 Program Block Only: bsp (sprite-num)[, (mouseoff-control-str), (mouseover-control-str), (mousepress-control-str)]">bsp</a></span>
			<span class="Function">create a button from a sprite</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bdef" title="Ver.2.93 Program Block Only: bdef (default-control-str)">bdef</a></span>
			<span class="Function">specify behavior for when no sprite button is moused over</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btime" title="Ver.2.93 Program Block Only: btime (time-limit)[, (voice-wait-flag)]">btime</a></span>
			<span class="Function">specify button processing timeout duration</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bexec" title="Ver.2.93 Program Block Only: bexec $(input-result)[, %(num-input-result)]">bexec</a></span>
			<span class="Function">execute button processing</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bcursor" title="Ver.2.94 Program Block Only: bcursor">bcursor</a></span>
			<span class="Function">return cursor key input during button processing</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#bdown" title="Ver.2.94 Program Block Only: bdown">bdown</a></span>
			<span class="Function">return from button processing while button is pressed</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#btrans" title="Ver.2.94 Program Block Only: btrans">btrans</a></span>
			<span class="Function">ignore transparent areas during button processing</span>
			<div class="Space"></div>
		</div>
		<a id="category_ponscr"></a>
		<h5>PONScripter Commands</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#_tildetag" title="Special Text Command: ~(tag)[...]~">~</a></span>
			<span class="Function">set a ponscripter formatting tag region</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#pmapfont" title="PONS Ver.20090926 Definition/Program Block: pmapfont (slot-num),(font-file)[, (metrics-file)]">pmapfont</a></span>
			<span class="Function">map a font file to a ponscripter font slot</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#prendering" title="PONS Ver.20090926 Definition/Program Block: prendering (hinting), (positioning)[, (rendermode)]">prendering</a></span>
			<span class="Function">configure ponscripter text rendering</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#pfontstyle" title="PONS Ver.20090926 Definition/Program Block: pfontstyle (font-style)">pfontstyle</a></span>
			<span class="Function">set the default font style</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#pligate" title="PONS Ver.20090926 Definition/Program Block: pligate (input),(unicode)">pligate</a></span>
			<span class="Function">add or remove a ligature or shortcut sequence</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#pindentstr" title="PONS Ver.20090926 Definition/Program Block: pindentstr (indent-chars)">pindentstr</a></span>
			<span class="Function">specify characters that cause indents</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#pbreakstr" title="PONS Ver.20090926 Definition/Program Block: pbreakstr (break-chars)">pbreakstr</a></span>
			<span class="Function">specify characters that allow linebreaks</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#localestring" title="PONS Ver.20091013 Definition/Program Block: localestring (locale-item-id) (item-string)">localestring</a></span>
			<span class="Function">localize a right-click menu message string</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#h_mapfont" title="PONS Ver.20061124 Definition/Program Block: h_mapfont (slot-num),(font-file)[, (metrics-file)]">h_mapfont</a></span>
			<span class="Function">map a font file to a ponscripter font slot</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#h_rendering" title="PONS Ver.20061124 Definition/Program Block: h_rendering (hinting), (positioning)[, (rendermode)]">h_rendering</a></span>
			<span class="Function">configure ponscripter text rendering</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#h_fontstyle" title="Definition/Program Block: h_fontstyle (font-style)">h_fontstyle</a></span>
			<span class="Function">set the default font style</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#h_ligate" title="Definition/Program Block: h_ligate (input),(unicode)">h_ligate</a></span>
			<span class="Function">add or remove a ligature or shortcut sequence</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#h_indentstr" title="Definition/Program Block: h_indentstr (indent-chars)">h_indentstr</a></span>
			<span class="Function">specify characters that cause indents</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#h_breakstr" title="Definition/Program Block: h_breakstr (break-chars)">h_breakstr</a></span>
			<span class="Function">specify characters that allow linebreaks</span>
			<div class="Space"></div>
		</div>
		<a id="category_onscr_ru"></a>
		<h5>ONScripter-RU Commands</h5>
		<div class="Word T">
			<span class="WordLiteral"><a href="#ibx" title="Special Text Command: {CommandText}">{tags}</a></span>
			<span class="Function">Display text in italics, bold or bold-italics</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#disablespeedbuttons" title="Definition Block Only: disablespeedbuttons">disablespeedbuttons</a></span>
			<span class="Function">Disable text speed hotkeys (0,1,2,3)</span>
			<div class="Space"></div>
		</div>
		<div class="Word F">
			<span class="WordLiteral"><a href="#enable_custom_cursors" title="Definition Block Only: enable_custom_cursors">enable_custom_cursors</a></span>
			<span class="Function">Don't refresh the cursor surfaces</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#borderstyle" title="Definition/Program Block: borderstyle (size)[,(colour)]">borderstyle</a></span>
			<span class="Function">Specify font border style</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#debug_string" title="Definition/Program Block: debug_string (string)">debug_string</a></span>
			<span class="Function">Write a string (variable) to stderr</span>
			<div class="Space"></div>
		</div>	
		<div class="Word FE">
			<span class="WordLiteral"><a href="#movs" title="Definition/Program Block: movs ($variable) (type)">movs</a></span>
			<span class="Function">Fill the variable with a special symbol</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#setdefaultspeed" title="Definition/Program Block: setdefaultspeed (slow) (medium) (fast)">setdefaultspeed</a></span>
			<span class="Function">Set the current text speeds</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#timestamp" title="Definition/Program Block: timestamp ($variable)">timestamp</a></span>
			<span class="Function">Return current timestamp in seconds</span>
			<div class="Space"></div>
		</div>
		<div class="Word FE">
			<span class="WordLiteral"><a href="#wait2" title="Definition/Program Block: wait2 (time)">wait2</a></span>
			<span class="Function">Cause a time delay (there is no way to skip it)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#displayscreenshot" title="Program Block Only: displayscreenshot (SPRITE) (X) (Y) (W) (H) (OPAC)">displayscreenshot</a></span>
			<span class="Function">Display the screenshot created by getscreenshot as a lsp sprite</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsp2mul" title="Ver.2.80 Program Block Only: lsp2mul (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsp2mul</a></span>
			<span class="Function">load an extended sprite using multiply blending</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#lsph2mul" title="Ver.2.80 Program Block Only: lsph2mul (ex_sprite-num), (image-str), (center X-pos), (center Y-pos), (X-scale), (Y-scale), (rotation)[, (opacity)]">lsph2mul</a></span>
			<span class="Function">load an extended sprite using multiply blending (hidden)</span>
			<div class="Space"></div>
		</div>
		<div class="Word E">
			<span class="WordLiteral"><a href="#talsp" title="Program Block Only: talsp (SPRITE) (OPACITY)">talsp</a></span>
			<span class="Function">Change standing sprite opacity</span>
			<div class="Space"></div>
		</div>
	</div>
	<div class="Unframed" id="SIDEBAR">
		<a href="#_minus-sign">-</a><br>
		<a href="#_bang-d">!d</a><br>
		<a href="#_bang-s">!s</a><br>
		<a href="#_bang-sd">!sd</a><br>
		<a href="#_bang-w">!w</a><br>
		<a href="#_pound">#</a><br>
		<a href="#_dollarsign">$</a><br>
		<a href="#_dollarchar">$</a><br>
		<a href="#_percentsign">%</a><br>
		<a href="#_percentchar">%</a><br>
		<a href="#_parens">()</a><br>
		<a href="#_asterisk">*</a><br>
		<a href="#_multiplication-sign">*</a><br>
		<a href="#_customsel-label">*customsel</a><br>
		<a href="#_define-label">*define</a><br>
		<a href="#_start-label">*start</a><br>
		<a href="#_slash">/</a><br>
		<a href="#_division-sign">/</a><br>
		<a href="#_colon">:</a><br>
		<a href="#_semicolon">;</a><br>
		<a href="#_questionmark">?</a><br>
		<a href="#_questionchar">?</a><br>
		<a href="#_atsign">@</a><br>
		<a href="#_squarebrackets">[]</a><br>
		<a href="#_backslash">\</a><br>
		<a href="#_caret">^</a><br>
		<a href="#_underscore">_</a><br>
		<a href="#_backquote">`</a><br>
		<a href="#_curlybraces">{}</a><br>
		<a href="#_tilde">~</a><br>
		<a href="#_tildetag">~</a><br>
		<a href="#_plus-sign">+</a><br>
		<a href="#_anglebrackets">&lt;&gt;</a><br>
		<a href="#_hexliteral">0x</a><br>
		<a href="#abssetcursor">abssetcursor</a><br>
		<a href="#add">add</a><br>
		<a href="#addkinsoku">addkinsoku</a><br>
		<a href="#addnsadir">addnsadir</a><br>
		<a href="#allsp2hide">allsp2hide</a><br>
		<a href="#allsp2resume">allsp2resume</a><br>
		<a href="#allsphide">allsphide</a><br>
		<a href="#allspresume">allspresume</a><br>
		<a href="#amsp">amsp</a><br>
		<a href="#amsp2">amsp2</a><br>
		<a href="#arc">arc</a><br>
		<a href="#atoi">atoi</a><br>
		<a href="#autoclick">autoclick</a><br>
		<a href="#automode">automode</a><br>
		<a href="#automode_time">automode_time</a><br>
		<a href="#autosaveoff">autosaveoff</a><br>
		<a href="#avi">avi</a><br>
		<a href="#bar">bar</a><br>
		<a href="#barclear">barclear</a><br>
		<a href="#bclear">bclear</a><br>
		<a href="#bcursor">bcursor</a><br>
		<a href="#bdef">bdef</a><br>
		<a href="#bdown">bdown</a><br>
		<a href="#bexec">bexec</a><br>
		<a href="#bg">bg</a><br>
		<a href="#bgalia">bgalia</a><br>
		<a href="#bgcopy">bgcopy</a><br>
		<a href="#bgm">bgm</a><br>
		<a href="#bgmdownmode">bgmdownmode</a><br>
		<a href="#bgmfadein">bgmfadein</a><br>
		<a href="#bgmfadeout">bgmfadeout</a><br>
		<a href="#bgmonce">bgmonce</a><br>
		<a href="#bgmstop">bgmstop</a><br>
		<a href="#bgmvol">bgmvol</a><br>
		<a href="#blt">blt</a><br>
		<a href="#bmpcut">bmpcut</a><br>
		<a href="#br">br</a><br>
		<a href="#break">break</a><br>
		<a href="#bsp">bsp</a><br>
		<a href="#btime">btime</a><br>
		<a href="#btn">btn</a><br>
		<a href="#btnarea">btnarea</a><br>
		<a href="#btndef">btndef</a><br>
		<a href="#btndown">btndown</a><br>
		<a href="#btnnowindowerase">btnnowindowerase</a><br>
		<a href="#btntime">btntime</a><br>
		<a href="#btntime2">btntime2</a><br>
		<a href="#btnwait">btnwait</a><br>
		<a href="#btnwait2">btnwait2</a><br>
		<a href="#btrans">btrans</a><br>
		<a href="#bw2a">bw2a</a><br>
		<a href="#bw2a3">bw2a3</a><br>
		<a href="#caption">caption</a><br>
		<a href="#cdfadeout">cdfadeout</a><br>
		<a href="#cell">cell</a><br>
		<a href="#cellcheckexbtn">cellcheckexbtn</a><br>
		<a href="#cellcheckspbtn">cellcheckspbtn</a><br>
		<a href="#chainbmp">chainbmp</a><br>
		<a href="#checkkey">checkkey</a><br>
		<a href="#checkpage">checkpage</a><br>
		<a href="#chkcdfile">chkcdfile</a><br>
		<a href="#chkcdfile_ex">chkcdfile_ex</a><br>
		<a href="#chvol">chvol</a><br>
		<a href="#cl">cl</a><br>
		<a href="#click">click</a><br>
		<a href="#clickpos">clickpos</a><br>
		<a href="#clickskippage">clickskippage</a><br>
		<a href="#clickstr">clickstr</a><br>
		<a href="#clickvoice">clickvoice</a><br>
		<a href="#cmp">cmp</a><br>
		<a href="#cos">cos</a><br>
		<a href="#createdummy">createdummy</a><br>
		<a href="#csel">csel</a><br>
		<a href="#cselbtn">cselbtn</a><br>
		<a href="#cselgoto">cselgoto</a><br>
		<a href="#csp">csp</a><br>
		<a href="#csp2">csp2</a><br>
		<a href="#csvclose">csvclose</a><br>
		<a href="#csveof">csveof</a><br>
		<a href="#csvopen">csvopen</a><br>
		<a href="#csvread">csvread</a><br>
		<a href="#csvwrite">csvwrite</a><br>
		<a href="#date">date</a><br>
		<a href="#debuglog">debuglog</a><br>
		<a href="#dec">dec</a><br>
		<a href="#defaultfont">defaultfont</a><br>
		<a href="#defaultspeed">defaultspeed</a><br>
		<a href="#defbgmvol">defbgmvol</a><br>
		<a href="#definereset">definereset</a><br>
		<a href="#defmp3vol">defmp3vol</a><br>
		<a href="#defsevol">defsevol</a><br>
		<a href="#defsub">defsub</a><br>
		<a href="#defvoicevol">defvoicevol</a><br>
		<a href="#delay">delay</a><br>
		<a href="#deletemenu">deletemenu</a><br>
		<a href="#deletescreenshot">deletescreenshot</a><br>
		<a href="#dim">dim</a><br>
		<a href="#div">div</a><br>
		<a href="#draw">draw</a><br>
		<a href="#drawbg">drawbg</a><br>
		<a href="#drawbg2">drawbg2</a><br>
		<a href="#drawclear">drawclear</a><br>
		<a href="#drawfill">drawfill</a><br>
		<a href="#drawsp">drawsp</a><br>
		<a href="#drawsp2">drawsp2</a><br>
		<a href="#drawsp3">drawsp3</a><br>
		<a href="#drawtext">drawtext</a><br>
		<a href="#dsound">dsound</a><br>
		<a href="#dv">dv</a><br>
		<a href="#dwave">dwave</a><br>
		<a href="#dwaveload">dwaveload</a><br>
		<a href="#dwaveloop">dwaveloop</a><br>
		<a href="#dwaveplay">dwaveplay</a><br>
		<a href="#dwaveplayloop">dwaveplayloop</a><br>
		<a href="#dwavestop">dwavestop</a><br>
		<a href="#effect">effect</a><br>
		<a href="#effectblank">effectblank</a><br>
		<a href="#effectcut">effectcut</a><br>
		<a href="#effectskip">effectskip</a><br>
		<a href="#end">end</a><br>
		<a href="#english">english</a><br>
		<a href="#erasetextbtn">erasetextbtn</a><br>
		<a href="#erasetextwindow">erasetextwindow</a><br>
		<a href="#errorsave">errorsave</a><br>
		<a href="#exbtn">exbtn</a><br>
		<a href="#exbtn_d">exbtn_d</a><br>
		<a href="#exec_dll">exec_dll</a><br>
		<a href="#fchk">fchk</a><br>
		<a href="#fileexist">fileexist</a><br>
		<a href="#filelog">filelog</a><br>
		<a href="#fileremove">fileremove</a><br>
		<a href="#flushout">flushout</a><br>
		<a href="#font">font</a><br>
		<a href="#for">for</a><br>
		<a href="#game">game</a><br>
		<a href="#gameid">gameid</a><br>
		<a href="#getbtntimer">getbtntimer</a><br>
		<a href="#getcselnum">getcselnum</a><br>
		<a href="#getcselstr">getcselstr</a><br>
		<a href="#getcursor">getcursor</a><br>
		<a href="#getcursorpos">getcursorpos</a><br>
		<a href="#getcursorpos2">getcursorpos2</a><br>
		<a href="#getenter">getenter</a><br>
		<a href="#getfunction">getfunction</a><br>
		<a href="#getini">getini</a><br>
		<a href="#getinsert">getinsert</a><br>
		<a href="#getlog">getlog</a><br>
		<a href="#getlogtext">getlogtext</a><br>
		<a href="#getmclick">getmclick</a><br>
		<a href="#getmouseover">getmouseover</a><br>
		<a href="#getmousepos">getmousepos</a><br>
		<a href="#getnextline">getnextline</a><br>
		<a href="#getpage">getpage</a><br>
		<a href="#getparam">getparam</a><br>
		<a href="#getreg">getreg</a><br>
		<a href="#getret">getret</a><br>
		<a href="#getsavestr">getsavestr</a><br>
		<a href="#getscreenshot">getscreenshot</a><br>
		<a href="#getskipoff">getskipoff</a><br>
		<a href="#getspmode">getspmode</a><br>
		<a href="#getspsize">getspsize</a><br>
		<a href="#gettab">gettab</a><br>
		<a href="#gettag">gettag</a><br>
		<a href="#gettaglog">gettaglog</a><br>
		<a href="#gettext">gettext</a><br>
		<a href="#gettextbtnstr">gettextbtnstr</a><br>
		<a href="#gettimer">gettimer</a><br>
		<a href="#getversion">getversion</a><br>
		<a href="#getwindowsize">getwindowsize</a><br>
		<a href="#getzxc">getzxc</a><br>
		<a href="#globalon">globalon</a><br>
		<a href="#gosub">gosub</a><br>
		<a href="#goto">goto</a><br>
		<a href="#h_breakstr">h_breakstr</a><br>
		<a href="#h_fontstyle">h_fontstyle</a><br>
		<a href="#h_indentstr">h_indentstr</a><br>
		<a href="#h_ligate">h_ligate</a><br>
		<a href="#h_mapfont">h_mapfont</a><br>
		<a href="#h_rendering">h_rendering</a><br>
		<a href="#humanorder">humanorder</a><br>
		<a href="#humanpos">humanpos</a><br>
		<a href="#humanz">humanz</a><br>
		<a href="#if">if</a><br>
		<a href="#inc">inc</a><br>
		<a href="#indent">indent</a><br>
		<a href="#input">input</a><br>
		<a href="#inputnum">inputnum</a><br>
		<a href="#inputstr">inputstr</a><br>
		<a href="#insertmenu">insertmenu</a><br>
		<a href="#intlimit">intlimit</a><br>
		<a href="#isdown">isdown</a><br>
		<a href="#isfull">isfull</a><br>
		<a href="#ispage">ispage</a><br>
		<a href="#isskip">isskip</a><br>
		<a href="#itoa">itoa</a><br>
		<a href="#itoa2">itoa2</a><br>
		<a href="#jumpb">jumpb</a><br>
		<a href="#jumpf">jumpf</a><br>
		<a href="#kidokumode">kidokumode</a><br>
		<a href="#kidokuskip">kidokuskip</a><br>
		<a href="#killmenu">killmenu</a><br>
		<a href="#kinsoku">kinsoku</a><br>
		<a href="#labelexist">labelexist</a><br>
		<a href="#labellog">labellog</a><br>
		<a href="#language">language</a><br>
		<a href="#layermessage">layermessage</a><br>
		<a href="#lchk">lchk</a><br>
		<a href="#ld">ld</a><br>
		<a href="#len">len</a><br>
		<a href="#linepage">linepage</a><br>
		<a href="#linkcolor">linkcolor</a><br>
		<a href="#loadgame">loadgame</a><br>
		<a href="#loadgosub">loadgosub</a><br>
		<a href="#localestring">localestring</a><br>
		<a href="#locate">locate</a><br>
		<a href="#logsp">logsp</a><br>
		<a href="#logsp2">logsp2</a><br>
		<a href="#lookbackbutton">lookbackbutton</a><br>
		<a href="#lookbackcolor">lookbackcolor</a><br>
		<a href="#lookbackflush">lookbackflush</a><br>
		<a href="#lookbackoff">lookbackoff</a><br>
		<a href="#lookbackon">lookbackon</a><br>
		<a href="#lookbacksp">lookbacksp</a><br>
		<a href="#lookbackvoice">lookbackvoice</a><br>
		<a href="#loopbgm">loopbgm</a><br>
		<a href="#loopbgmstop">loopbgmstop</a><br>
		<a href="#lr_trap">lr_trap</a><br>
		<a href="#lr_trap2">lr_trap2</a><br>
		<a href="#lrclick">lrclick</a><br>
		<a href="#lsp">lsp</a><br>
		<a href="#lsp2">lsp2</a><br>
		<a href="#lsp2add">lsp2add</a><br>
		<a href="#lsp2sub">lsp2sub</a><br>
		<a href="#lsph">lsph</a><br>
		<a href="#lsph2">lsph2</a><br>
		<a href="#lsph2add">lsph2add</a><br>
		<a href="#lsph2sub">lsph2sub</a><br>
		<a href="#luacall">luacall</a><br>
		<a href="#luasub">luasub</a><br>
		<a href="#maxkaisoupage">maxkaisoupage</a><br>
		<a href="#menu_click_def">menu_click_def</a><br>
		<a href="#menu_click_page">menu_click_page</a><br>
		<a href="#menu_dwavvol">menu_dwavvol</a><br>
		<a href="#menu_full">menu_full</a><br>
		<a href="#menu_waveoff">menu_waveoff</a><br>
		<a href="#menu_waveon">menu_waveon</a><br>
		<a href="#menu_window">menu_window</a><br>
		<a href="#menuselectcolor">menuselectcolor</a><br>
		<a href="#menuselectvoice">menuselectvoice</a><br>
		<a href="#menusetwindow">menusetwindow</a><br>
		<a href="#mesbox">mesbox</a><br>
		<a href="#mid">mid</a><br>
		<a href="#minimizewindow">minimizewindow</a><br>
		<a href="#mod">mod</a><br>
		<a href="#mode_ext">mode_ext</a><br>
		<a href="#mode_saya">mode_saya</a><br>
		<a href="#mode_wave_demo">mode_wave_demo</a><br>
		<a href="#mode320">mode320</a><br>
		<a href="#mode400">mode400</a><br>
		<a href="#mode800">mode800</a><br>
		<a href="#monocro">monocro</a><br>
		<a href="#mousecursor">mousecursor</a><br>
		<a href="#mousemode">mousemode</a><br>
		<a href="#mov">mov</a><br>
		<a href="#mov10">mov10</a><br>
		<a href="#mov3">mov3</a><br>
		<a href="#mov4">mov4</a><br>
		<a href="#mov5">mov5</a><br>
		<a href="#mov6">mov6</a><br>
		<a href="#mov7">mov7</a><br>
		<a href="#mov8">mov8</a><br>
		<a href="#mov9">mov9</a><br>
		<a href="#movemousecursor">movemousecursor</a><br>
		<a href="#movie">movie</a><br>
		<a href="#movl">movl</a><br>
		<a href="#mp3">mp3</a><br>
		<a href="#mp3fadein">mp3fadein</a><br>
		<a href="#mp3fadeout">mp3fadeout</a><br>
		<a href="#mp3loop">mp3loop</a><br>
		<a href="#mp3save">mp3save</a><br>
		<a href="#mp3stop">mp3stop</a><br>
		<a href="#mp3vol">mp3vol</a><br>
		<a href="#mpegplay">mpegplay</a><br>
		<a href="#msp">msp</a><br>
		<a href="#msp2">msp2</a><br>
		<a href="#mul">mul</a><br>
		<a href="#mv">mv</a><br>
		<a href="#nega">nega</a><br>
		<a href="#next">next</a><br>
		<a href="#nextcsel">nextcsel</a><br>
		<a href="#noloaderror">noloaderror</a><br>
		<a href="#noteraseman">noteraseman</a><br>
		<a href="#notif">notif</a><br>
		<a href="#nsa">nsa</a><br>
		<a href="#nsadir">nsadir</a><br>
		<a href="#numalias">numalias</a><br>
		<a href="#ofscpy">ofscpy</a><br>
		<a href="#okcancelbox">okcancelbox</a><br>
		<a href="#pagetag">pagetag</a><br>
		<a href="#pbreakstr">pbreakstr</a><br>
		<a href="#pfontstyle">pfontstyle</a><br>
		<a href="#pindentstr">pindentstr</a><br>
		<a href="#play">play</a><br>
		<a href="#playonce">playonce</a><br>
		<a href="#playstop">playstop</a><br>
		<a href="#pligate">pligate</a><br>
		<a href="#pmapfont">pmapfont</a><br>
		<a href="#prendering">prendering</a><br>
		<a href="#pretextgosub">pretextgosub</a><br>
		<a href="#print">print</a><br>
		<a href="#prnum">prnum</a><br>
		<a href="#prnumclear">prnumclear</a><br>
		<a href="#puttext">puttext</a><br>
		<a href="#quake">quake</a><br>
		<a href="#quakex">quakex</a><br>
		<a href="#quakey">quakey</a><br>
		<a href="#r_trap">r_trap</a><br>
		<a href="#readfile">readfile</a><br>
		<a href="#repaint">repaint</a><br>
		<a href="#reset">reset</a><br>
		<a href="#resetmenu">resetmenu</a><br>
		<a href="#resettimer">resettimer</a><br>
		<a href="#return">return</a><br>
		<a href="#rgosub">rgosub</a><br>
		<a href="#rlookback">rlookback</a><br>
		<a href="#rmenu">rmenu</a><br>
		<a href="#rmode">rmode</a><br>
		<a href="#rnd">rnd</a><br>
		<a href="#rnd2">rnd2</a><br>
		<a href="#roff">roff</a><br>
		<a href="#rubyoff">rubyoff</a><br>
		<a href="#rubyon">rubyon</a><br>
		<a href="#rubyon2">rubyon2</a><br>
		<a href="#savedir">savedir</a><br>
		<a href="#savefileexist">savefileexist</a><br>
		<a href="#savegame">savegame</a><br>
		<a href="#savegame2">savegame2</a><br>
		<a href="#savename">savename</a><br>
		<a href="#savenumber">savenumber</a><br>
		<a href="#saveoff">saveoff</a><br>
		<a href="#saveon">saveon</a><br>
		<a href="#savepoint">savepoint</a><br>
		<a href="#savescreenshot">savescreenshot</a><br>
		<a href="#savescreenshot2">savescreenshot2</a><br>
		<a href="#savetime">savetime</a><br>
		<a href="#select">select</a><br>
		<a href="#selectbtnwait">selectbtnwait</a><br>
		<a href="#selectcolor">selectcolor</a><br>
		<a href="#selectvoice">selectvoice</a><br>
		<a href="#selgosub">selgosub</a><br>
		<a href="#selnum">selnum</a><br>
		<a href="#setcursor">setcursor</a><br>
		<a href="#setkinsoku">setkinsoku</a><br>
		<a href="#setlayer">setlayer</a><br>
		<a href="#setwindow">setwindow</a><br>
		<a href="#setwindow2">setwindow2</a><br>
		<a href="#setwindow3">setwindow3</a><br>
		<a href="#sevol">sevol</a><br>
		<a href="#shadedistance">shadedistance</a><br>
		<a href="#shell">shell</a><br>
		<a href="#sin">sin</a><br>
		<a href="#skip">skip</a><br>
		<a href="#skipoff">skipoff</a><br>
		<a href="#soundpressplgin">soundpressplgin</a><br>
		<a href="#spbtn">spbtn</a><br>
		<a href="#spclclk">spclclk</a><br>
		<a href="#spfont">spfont</a><br>
		<a href="#spi">spi</a><br>
		<a href="#split">split</a><br>
		<a href="#spstr">spstr</a><br>
		<a href="#spwait">spwait</a><br>
		<a href="#stop">stop</a><br>
		<a href="#stralias">stralias</a><br>
		<a href="#strsp">strsp</a><br>
		<a href="#strsph">strsph</a><br>
		<a href="#sub">sub</a><br>
		<a href="#systemcall">systemcall</a><br>
		<a href="#tablegoto">tablegoto</a><br>
		<a href="#tal">tal</a><br>
		<a href="#tan">tan</a><br>
		<a href="#tateyoko">tateyoko</a><br>
		<a href="#texec">texec</a><br>
		<a href="#texec2">texec2</a><br>
		<a href="#textbtnoff">textbtnoff</a><br>
		<a href="#textbtnstart">textbtnstart</a><br>
		<a href="#textbtnwait">textbtnwait</a><br>
		<a href="#textclear">textclear</a><br>
		<a href="#textcolor">textcolor</a><br>
		<a href="#textexbtn">textexbtn</a><br>
		<a href="#textfield">textfield</a><br>
		<a href="#textgosub">textgosub</a><br>
		<a href="#texthide">texthide</a><br>
		<a href="#textoff">textoff</a><br>
		<a href="#texton">texton</a><br>
		<a href="#textshow">textshow</a><br>
		<a href="#textspeed">textspeed</a><br>
		<a href="#textspeeddefault">textspeeddefault</a><br>
		<a href="#time">time</a><br>
		<a href="#transbtn">transbtn</a><br>
		<a href="#transmode">transmode</a><br>
		<a href="#trap">trap</a><br>
		<a href="#trap2">trap2</a><br>
		<a href="#underline">underline</a><br>
		<a href="#useescspc">useescspc</a><br>
		<a href="#usewheel">usewheel</a><br>
		<a href="#v">v</a><br>
		<a href="#value">value</a><br>
		<a href="#versionstr">versionstr</a><br>
		<a href="#voicevol">voicevol</a><br>
		<a href="#vsp">vsp</a><br>
		<a href="#vsp2">vsp2</a><br>
		<a href="#wait">wait</a><br>
		<a href="#waittimer">waittimer</a><br>
		<a href="#wave">wave</a><br>
		<a href="#waveloop">waveloop</a><br>
		<a href="#wavestop">wavestop</a><br>
		<a href="#windowback">windowback</a><br>
		<a href="#windowchip">windowchip</a><br>
		<a href="#windoweffect">windoweffect</a><br>
		<a href="#winexec">winexec</a><br>
		<a href="#yesnobox">yesnobox</a><br>
		<a href="#zenkakko">zenkakko</a><br>
		<br>ONScripter-RU<br>
		<a href="#ibx">{tags}</a><br>
		<a href="#disablespeedbuttons">disablespeedbuttons</a><br>
		<a href="#enable_custom_cursors">enable_custom_cursors</a><br>
		<a href="#borderstyle">borderstyle</a><br>
		<a href="#debug_string">debug_string</a><br>
		<a href="#movs">movs</a><br>
		<a href="#setdefaultspeed">setdefaultspeed</a><br>
		<a href="#timestamp">timestamp</a><br>
		<a href="#wait2">wait2</a><br>
		<a href="#displayscreenshot">displayscreenshot</a><br>
		<a href="#lsp2mul">lsp2mul</a><br>
		<a href="#lsph2mul">lsph2mul</a><br>
		<a href="#talsp">talsp</a><br>
	</div>
</div>
<div id="MAIN">
	<a id="_minus-sign"></a>
	<h2>
		<div class="Support">
			<span class="WordField"><span class="NoBr">[Definition/Program Block]</span></span>
			<span class="EngineField">
				<span class="NoBr">( NScr	<span class="EngineVersion">2.10</span></span>,
				<span class="NoBr">ONScr</span>,
				<span class="NoBr">ONScr-EN</span>,
				<span class="NoBr">PONS )</span>
			</span>
		</div>
		<div class="WordName">-</div>
	</h2>
	<h4><a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a></h4>
	<h3>NUM'-'NUM</h3>
	<div class="Arguments">
		<span class="ArgType">NUM</span>
		<span class="ArgMeaning">Numeric value to be subtracted from</span>
		<div class="Space"></div>
		<span class="ArgType">NUM</span>
		<span class="ArgMeaning">Numeric value to subtract</span>
		<div class="Space"></div>
	</div>
	<div class="ContentBody">
<p class="Description">
	Builds an expression, where the second number is subtracted from the first number.<br>
	The expression result is used as a numeric argument for a command.
</p>
<hr>
<a href="#sub">sub</a> / <hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br></div><a id="_bang-d"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">!d</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>!dNUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amount of time to wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Waits for the specified number of milliseconds, then continues. This state can be canceled with a click.<br>
		The given number must be a normal number, not a variable - if you want to use a variable, please use the <b>delay</b> command.
	</p>
	<hr>
		<a href="#delay">delay</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_bang-s"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">!s</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>!sNUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Character display speed (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the speed of text display (in milliseconds).<br>
		The number <b>must</b> be a normal number, not a numeric variable. To use a variable, try the <b>textspeed</b> command instead.
	</p>
	<hr>
		<a href="#textspeed">textspeed</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_bang-sd"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">!sd</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>!sd</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Sets text display to the current default speed. You may set the three possible default speeds with the <b>defaultspeed</b> command.
	</p>
	<hr>
		<a href="#defaultspeed">defaultspeed</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_bang-w"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">!w</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>!wNUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amount of time to wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Waits for the specified number of milliseconds, then continues. This state cannot be canceled with a click.<br>
		The given number must be a normal number, not a variable - if you want to use a variable, please use the <b>wait</b> command.
	</p>
	<hr>
		<a href="#wait">wait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_pound"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">#</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>#rrggbb</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Changes the color of the text, using HTML hexadecimal color codes (e.g. #000000 for black, #ffffff for white, and #ffffaa for pale yellow).<br>
		Please note that it only changes the color of text displayed after this command, and not any of the text that came before.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_dollarsign"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">$</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>'$'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Variable number (0 - 4095)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works much as for numeric variables -- like the general vs. global designation -- except for character strings.<br>
		The default value for character variables is "".
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The starting global variable value can be adjusted with the <b>value</b> directive. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#_percentsign">%</a> / <a href="#globalon">globalon</a> / <a href="#value">value</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_dollarchar"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">$</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>$NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">String variable number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Tag for character string variables. Use this to access their contents within text.</p>
	<hr>
		<a href="#_percentchar">%</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_percentsign"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">%</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>'%'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Variable number (0 - 4095)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Numeric variables can range from %0 to %4095 -- 4096 total.<br>
		0 to 199 are general variables, while 200 and above are globals.<br>
		General variables are reinitialized upon game restart, reset, and such, while global variables retain their values.<br>
		In other words, general variables are saved and loaded on savetime and loadtime, but global variables remain constant throughout.<br>
		Therefore, it's best to use general variables when doing math, and to use global variables for things like stage-clear flags, etc.<br>
		To use global variables, you'll have to specify the command <b>globalon</b> in the definition block.<br>
		<br>
		The default value of a numeric variable is 0.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The starting global variable value can be adjusted with the <b>value</b> directive. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#_dollarsign">$</a> / <a href="#globalon">globalon</a> / <a href="#value">value</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_percentchar"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">%</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>%NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric variable number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Tag for numeric variables. Use this to access their contents within text.</p>
	<hr>
		<a href="#_dollarchar">$</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_parens"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">()</div>
</h2><h4>
	<a href="#category_ruby" class="WordCategory">Ruby Text</a>
</h4><h3>'('STR'/'STR')'</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Main text to show ruby text above</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Ruby text (displayed smaller, spread above main text)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This text command produces ruby text, often used for furigana (Japanese phonetic characters that show the pronunciation of a kanji phrase).</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sample script using ruby text</div>
		<pre class="ExSource">
*define
rubyon
game
*start
setwindow 10,10,20,20,24,24,0,12,0,1,1,#ffffff,0,0,639,479
ルビ機能の(暫定仕様/ざんていしよう)です。@
ｒｕｂｙｏｎ時、(文字/もじ)は(下詰/したづめ)で表示されます。@
(縦/たて)の(字間/じかん)を、ルビが入る分とって下さい。@
「(承/うけたまわ)」る、とか、「(論理的/ロジカル)」みたいに、文字幅をあわせようとする機能がついてます。
ルビは折り返し改行されませんのでご注意ください。\
end</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Ruby text example with ONScripter (note the '(', '/', and ')' must be outside single-byte mode).</div>
		<pre class="ExSource">
*define
rubyon
game
*start
setwindow 10,10,20,20,24,24,0,12,0,1,1,#ffffff,0,0,639,479
`This is a script that displays ruby text.@
`You can use it with Japanese examples, `(文字/もじ)`, for example.@
br
`In ONScripter-EN you can even do things like `(文字/moji)` or `(`DREADFUL`/horrible)`, if not very well.@
`Be sure to use vertical spacing or insert a blank line above rubied text, so that the ruby doesn't overlap earlier lines.\
end</pre>
	</div>
	<hr>
		<a href="#rubyoff">rubyoff</a> / <a href="#rubyon">rubyon</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_asterisk"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">*</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>'*'NAME</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Label name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a label with the given name. You can use statements like <b>goto</b> to jump to this label.<br>
		The name may contain numbers (except in the first position), single-byte characters, and underscores, but nothing else.<br>
		<br>
		<span class="Indent"></span><b>OK:</b><br>
		<span class="Indent"></span><span class="Indent"></span>*HAJIMARI<br>
		<span class="Indent"></span><span class="Indent"></span>*Mike_Tom<br>
		<span class="Indent"></span><span class="Indent"></span>*day01<br>
		<br>
		<span class="Indent"></span><b>NOT OK:</b><br>
		<span class="Indent"></span><span class="Indent"></span>*始まり (uses double-byte chars)<br>
		<span class="Indent"></span><span class="Indent"></span>*Mike&amp;Tom (uses ampersand)<br>
		<span class="Indent"></span><span class="Indent"></span>*01day (starts with a number)
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Hyphens aren't allowed; use underscores instead.<br>
			Since names are case insensitive, "*HAJIMARI" and "*hajimari" are considered to be the same. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment"></div>
		<pre class="ExSource">*asterisk</pre>
	</div>
	<hr>
		<a href="#gosub">gosub</a> / <a href="#goto">goto</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_multiplication-sign"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.10</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">*</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>NUM'*'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to multiply</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to multiply</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Builds an expression, where the first number is multiplied by the second number.<br>
		The expression result is used as a numeric argument for a command.
	</p>
	<hr>
		<a href="#mul">mul</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_customsel-label"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">*customsel</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>*customsel</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Jumps to this label whenever a <b>csel</b> command is executed.<br>
		Code for handling a custom select display follows this label.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This defines handling routines for csel.</div>
		<pre class="ExSource">
*customsel
skipoff
*csel_st
btndef clear
getcselnum %0
getcursorpos %1,%2
cselbtn 0,500,%1,%2
add %2,21
cselbtn 1,501,%1,%2
if %0&gt;2 add %2,21:cselbtn 2,502,%1,%2
if %0&gt;3 add %2,21:cselbtn 3,503,%1,%2
if %0&gt;4 add %2,21:cselbtn 4,504,%1,%2

*csel_loop
selectbtnwait %0
if %0=-2 systemcall lookback:goto *csel_loop
if %0=-1 gosub *rclk:goto *csel_st
if %0&gt;=500 &amp; %0&lt;=504 saveon:sub %0,500:cselgoto %0
goto *csel_loop</pre>
	</div>
	<hr>
		<a href="#csel">csel</a> / <a href="#cselbtn">cselbtn</a> / <a href="#cselgoto">cselgoto</a> / <a href="#getcselnum">getcselnum</a> / <a href="#getcselstr">getcselstr</a> / <a href="#selectbtnwait">selectbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_define-label"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">*define</div>
</h2><h4>
	<a href="#category_startend" class="WordCategory">Game Start/End/Quit</a>
</h4><h3>*define</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">A special label that denotes the start of the definition block.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">A definition block that does nothing</div>
		<pre class="ExSource">
*define
game</pre>
	</div>
	<hr>
		<a href="#definereset">definereset</a> / <a href="#game">game</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_start-label"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">*start</div>
</h2><h4>
	<a href="#category_startend" class="WordCategory">Game Start/End/Quit</a>
</h4><h3>*start</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">This label denotes the start of the program block proper.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">A program block that does nothing</div>
		<pre class="ExSource">
*start
end</pre>
	</div>
	<hr>
		<a href="#game">game</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_slash"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">/</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>/</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">If you write a newline directly after this slash, then the newline will be ignored.</p>
	<hr>
		<a href="#jumpb">jumpb</a> / <a href="#jumpf">jumpf</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_division-sign"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.10</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">/</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>NUM'/'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to divide</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to use as divisor</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Builds an expression, where the first number is divided by the second number.<br>
		The expression result is used as a numeric argument for a command.
	</p>
	<hr>
		<a href="#div">div</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_colon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">:</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>SENTENCE ':' SENTENCE</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		You can use colons in place of carriage returns to separate out distinct commands.<br>
		These are most often used in if statements, e.g.<br>
		<b>if CONDITION command1:command2:command3 ...</b>
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">On a right-click, hide sprites and then enter Log Mode</div>
		<pre class="ExSource">
btnwait %0
if %0=-1 allsphide:systemcall lookback</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_semicolon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">;</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>;</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">A command that starts with ';' is a comment - Nscr will skip these.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment"></div>
		<pre class="ExSource">defsub abs ; This is just a comment.</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_questionmark"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">?</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>'?'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Array number (0 - 199)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		An array variable, declared via the <b>dim</b> command.<br>
		They may range from ?0 to ?199 -- 200 in total.<br>
		Arrays may not be used as global variables.
	</p>
	<hr>
		<a href="#dim">dim</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_questionchar"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">?</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>?NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Array number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Tag for array variables. Use this to access their contents within text, but note that you must reference exactly one array element within the array range(s) defined by <b>dim</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">An example of array usage in text</div>
		<pre class="ExSource">
*define
dim ?0[10][20]
start
;populate ?0[2][5] with value 20.
mov ?0[2][5],20
;used in text
ＶＡＬ＝?0[2][3]@</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">An example of array usage in single-byte text</div>
		<pre class="ExSource">`Array value = `?0[2][5]`.@</pre>
	</div>
	<hr>
		<a href="#dim">dim</a> / <a href="#_percentchar">%</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_atsign"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">@</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>@</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Enters click wait state.</p>
	<hr>
		<a href="#_backslash">\</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_squarebrackets"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.46</span>
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">[]</div>
</h2><h4>
	<a href="#category_tag" class="WordCategory">Pretext Tags</a>
</h4><h3>'['STR']'</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Tag data elements, delimited by "/"</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies tag data accessible to <b>gettag</b> within a <b>pretextgosub</b> routine, called immediately before the following text is displayed.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This calls a pretextgosub routine before "「太郎の台詞」" is displayed, where gettag will extract "太郎" and "0001.wav".</div>
		<pre class="ExSource">[太郎/0001.wav]「太郎の台詞」</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">This calls a pretextgosub routine before "Taro speaking." is displayed, where gettag will extract `Taro Mendo` and "0001.wav".</div>
		<pre class="ExSource">[`Taro Mendo`/0001.wav]`Taro speaking.`</pre>
	</div>
	<hr>
		<a href="#gettag">gettag</a> / <a href="#pretextgosub">pretextgosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_backslash"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">\</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>\</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Enters end-of-page wait state -- any new characters following this symbol on the same line are ignored. Once the player clicks, he is sent to the next page.</p>
	<hr>
		<a href="#_atsign">@</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_caret"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">^</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>^</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this character to enter ponscripter text mode.<br>
		<br>
		The following text commands work within ponscripter text mode:<br>
		<span class="Indent"></span><b>@ / \ !w !s !d !sd $VAR %VAR #rrggbb</b><br>
		<br>
		You may use '#' before any of the characters @, /, \, $, %, !, #, and _ to display the literal character, thereby preventing it from parsing as a text command.<br>
		<br>
		PONScripter text mode supports <b>~</b>-marked formatting tags; a literal ~ can be displayed with '~~'.<br>
		<br>
		Also note that carets can be used in place of double-quotes for string arguments to commands (e.g. puttext ^Hello there^). Strings delimited in this manner are parsed like regular double-quoted strings, but with additional parsing for <b>~</b> formatting tags (e.g. ^~b~Hello~b~ there^ displays as "<b>Hello</b> there").
	</p>
	<hr>
		<a href="#_tildetag">~</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_underscore"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.98</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">_</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>_</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		If you write a click-wait char (or newline, if <b>linepage</b> is active) immediately after this underscore, then the wait state/page feed is ignored.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This command got added to NScr ver1.98, but didn't work properly until ver2.48. (by Mion)</div>
	</div>
	<hr>
		<a href="#_atsign">@</a> / <a href="#_backslash">\</a> / <a href="#clickstr">clickstr</a> / <a href="#linepage">linepage</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_backquote"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( ONScr<span class="EngineVersion">20040909</span>
			</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">`</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>`</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this character to enter single-byte text mode.<br>
		Japanese ONScripter must be compiled with ENABLE_1BYTE_CHAR defined to use this mode; ONScripter-EN has it available by default.<br>
		<br>
		The following text commands work within single-byte mode:<br>
		<span class="Indent"></span><b>@ / \ !w !s !d !sd $VAR #rrggbb</b><br>
		<br>
		You may use '$$' to produce the character '$'. Other text commands must be outside single-byte mode to work - the backquote can work as a toggle in these cases:<br>
		<span class="Indent"></span><b>`I have ` %0 ` apples.@</b><br>
		<br>
		Also note that backquotes can be used in place of double-quotes for string arguments to commands, to have the strings be used in single-byte mode (e.g. puttext `Hello there`; otherwise, backquotes may be used within strings to toggle single-byte mode (e.g. ":s;#FF0000`Red text sprite")
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			When <b>textgosub</b> is defined, the clickwait <b>@</b> should be toggled out of single-byte mode (e.g. <b>`Hello.`@` This is text`@</b>), otherwise single-byte text after the clickwait won't display correctly. (by Mion)
		</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			In ponscripter, this use of <b>`</b> is only available in onscripter compatibility mode (i.e. when run on SJIS scripts). (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Example ONScripter script with commands that use single-byte mode.</div>
		<pre class="ExSource">
*define
numalias name,0
clickstr `.?"`,2
savename `Save the scene`, `Load the scene`, "Memory "
rmenu `Save to file`,save,`Load from file`,load
game

*start
`Hi, this is a test.
`#FF0000This is another test.#FFFFFF
`_"He said so."
`_"She said so."
`Does it work??
mov $name,`Mion Sonozaki`
`Hello there $name.@ How are you?@
br
selgosub `Say "Turn to the right."`, *right, `Say "Turn to the left."`, *left, "`Do nothing.", *nothing
end
*right
`You turned to the right.\
return

*left
`You turned to the left.\
return

*nothing
`You didn't do anything.\
return</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_curlybraces"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.65</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">{}</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>'{'$VAR|%VAR,STR|NUM[,...]'}'</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">A string or numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Provide a string value if VAR was a string variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Provide a numeric value if VAR was a numeric variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This allows assigning a value to a variable from within a text block.<br>
		To do so, enclose the variable and value within parentheses.<br>
		Please note that aliases may not be used - only regular variable numbers, numeric and string values.<br>
		If multiple variable/value pairs are provided, as in { Var, Value, Var, Value }, then all the given substitutions will be executed.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The substitutions will be available for the next command, but not later within the same text block. (by Mion)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %2 to 15 and $3 to 'テキスト' within a text command.</div>
		<pre class="ExSource">
mov %2,4 : mov $3,"いない"
;the following text sets values
ここでは %2 $3 、@このように{%2,15,$3,テキスト}。@
ここでは %2 $3。\</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Sets %2 to 15 and $3 to 'TEXT' within a text command (using single-byte mode).</div>
		<pre class="ExSource">
mov %2,4 : mov $3,`zilch`
;the following text sets values
`Right now we have `%2` $3,@ and want to change`{%2,15,$3,`TEXT`}` values.@
`Now we have `%2` $3.\</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_tilde"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">~</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>~</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Tags that are targets for jumpf and jumpb.<br>
		Please do not place any display text between a jumpf/jumpb command and a ~.
	</p>
	<hr>
		<a href="#jumpb">jumpb</a> / <a href="#jumpf">jumpf</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_tildetag"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">~</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>'~'FTAG[...]'~'</h3><div class="Arguments">
	<span class="ArgType">FTAG</span>
	<span class="ArgMeaning">A ponscripter formatting tag value</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets a PONScripter formatting tag region, which can contain one or more of the following formatting tag values (possibly delimited by spaces):<br>
		<br>
		<b>Font Style:</b><br>
		(Note that most of the tags in this section assume a font slot layout as described in the <b>pmapfont</b> command definition.)<br>
		<span class="Indent"></span><b>c</b>NUM<span class="Indent"></span>select the font in slot NUM (0-7)<br>
		<span class="Indent"></span><b>d</b><span class="Indent"></span><span class="Indent"></span>select the default font style (same as <b>c0</b>)<br>
		<span class="Indent"></span><b>r</b><span class="Indent"></span><span class="Indent"></span>disable italics (default)<br>
		<span class="Indent"></span><b>i</b><span class="Indent"></span><span class="Indent"></span>toggle italics<br>
		<span class="Indent"></span><b>t</b><span class="Indent"></span><span class="Indent"></span>disable bold (default)<br>
		<span class="Indent"></span><b>b</b><span class="Indent"></span><span class="Indent"></span>toggle bold<br>
		<span class="Indent"></span><b>f</b><span class="Indent"></span><span class="Indent"></span>select the 'text' face (default)<br>
		<span class="Indent"></span><b>s</b><span class="Indent"></span><span class="Indent"></span>select the 'display' face<br>
		<br>
		<b>Text Size:</b><br>
		(In this section, 'base size' refers to the font size for the active window, while 'current size' refers to the current font size as specified using prior text size formatting tags.)<br>
		<span class="Indent"></span><b>=</b>NUM<span class="Indent"></span>set the current size to exactly NUM pixels (0 will reset to the base size)<br>
		<span class="Indent"></span><b>%</b>NUM<span class="Indent"></span>set the current size to NUM-percent of the base size<br>
		<span class="Indent"></span><b>+</b>NUM<span class="Indent"></span>increase the current size by NUM pixels<br>
		<span class="Indent"></span><b>-</b>NUM<span class="Indent"></span>decrease the current size by NUM pixels<br>
		<br>
		<b>Text Position:</b><br>
		<span class="Indent"></span><b>x</b>NUM<span class="Indent"></span>set the horizontal text position to NUM pixels right of the active window's left margin<br>
		<span class="Indent"></span><b>y</b>NUM<span class="Indent"></span>set the vertical text position to NUM pixels below the active window's top margin<br>
		<span class="Indent"></span><b>x+</b>NUM<span class="Indent"></span>adjust the current horizontal text position NUM pixels to the right<br>
		<span class="Indent"></span><b>y+</b>NUM<span class="Indent"></span>adjust the current vertical text position NUM pixels down<br>
		<span class="Indent"></span><b>x-</b>NUM<span class="Indent"></span>adjust the current horizontal text position NUM pixels to the left<br>
		<span class="Indent"></span><b>y-</b>NUM<span class="Indent"></span>adjust the current vertical text position NUM pixels up<br>
		<br>
		<b>Indentation:</b><br>
		<span class="Indent"></span><b>n</b><span class="Indent"></span><span class="Indent"></span>set the indent to the current horizontal position; new text lines will start from this offset until the end of the current page<br>
		<span class="Indent"></span><b>u</b><span class="Indent"></span><span class="Indent"></span>reset the indent to the left margin; note that this will only apply to later text lines, so use it at the end of the last line of an indented section<br>
		The indent is also set automatically when the first character of a page is an indenting character, as set using <b>pindentstr</b>.<br>
		<br>
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Displays the text "Hello there" using font style 1.</div>
		<pre class="ExSource">puttext ^~c1~Hello there^</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Produces a section of indented text followed by unindented text.</div>
		<pre class="ExSource">
^Bruce: ~n~What's that you say?@
^You don't understand indenting?~u~@
br
^Rick shuffled his feet.\</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Displays the text "Heading" in italics, 120% of the base font size, 20 pixels left and 40 pixels up from the current position. The italics and font size are reset afterwards.</div>
		<pre class="ExSource">^~i %120 x-20 y-40~Heading~i =0~</pre>
	</div>
	<hr>
		<a href="#pmapfont">pmapfont</a> / <a href="#pindentstr">pindentstr</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_plus-sign"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.10</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">+</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>NUM'+'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to add</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to add</span>
	<div class="Space"></div>
</div><h3>STR'+'STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to be augmented</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to concatenate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Builds an expression, where the second number/string is added/concatenated to the first number/string.<br>
		This will cause an error if the arguments are not both strings or both numbers.<br>
		The expression result is used as a numeric/string argument for a command.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">String concatenation with '+' was added in ver2.72.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Adds 1 to the value of Array 0 Element 0.</div>
		<pre class="ExSource">mov ?0[0],?0[0]+1</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assigns "●" to $1, then sets $2 to the concatenation of "あいうえお", $1, and "さしすせそ".</div>
		<pre class="ExSource">
mov $1,"●"
mov $2,"あいうえお"+$1+"さしすせそ"
;Now $2 contains "あいうえお●さしすせそ".</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Assigns "Text" to $0, then concatenates " String" onto it.</div>
		<pre class="ExSource">
mov $0,`Text`
mov $0,$0+` String`
;Now $0 contains "Text String".</pre>
	</div>
	<hr>
		<a href="#add">add</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_anglebrackets"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">&lt;&gt;</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>'&lt;'[NUM]STR'&gt;'</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Textbutton number, must be nonnegative (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Textbutton display text</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">A character string enclosed by '&lt;' and '&gt;' is converted into a text button.</p>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">A textbutton numbered 3</div>
		<pre class="ExSource">`This is a `&lt;3`textbutton`&gt;`.@</pre>
	</div>
	<hr>
		<a href="#linkcolor">linkcolor</a> / <a href="#textbtnstart">textbtnstart</a> / <a href="#gettextbtnstr">gettextbtnstr</a> / <a href="#erasetextbtn">erasetextbtn</a> / <a href="#textexbtn">textexbtn</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="_hexliteral"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">0x</div>
</h2><h4>
	<a href="#category_format" class="WordCategory">Syntax Markers</a>
</h4><h3>'0x'HNUM</h3><div class="Arguments">
	<span class="ArgType">HNUM</span>
	<span class="ArgMeaning">Hexidecimal number (any combination of digits 0-9, a-f, A-F)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This syntax allows providing a numeric literal value in hexidecimal instead of regular decimal, which can be more convenient in some cases.<br>
		PONScripter allows this format almost everywhere regular numeric literals are allowed, with the exception of ! and ~ text directives and tags.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Defines a numeric alias using hexadecimal.</div>
		<pre class="ExSource">numalias ascii_slash,0x2F</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="abssetcursor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">abssetcursor</div>
</h2><h4>
	<a href="#category_cursor" class="WordCategory">Cursor</a>
</h4><h3>abssetcursor NUM,STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cursor number (0: click-wait cursor, 1: page-wait cursor)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Cursor image filename</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cursor position X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cursor position Y-coordinate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This works the same as <b>setcursor</b>, but uses absolute onscreen coordinates, not text-relative coordinates.
	</p>
	<hr>
		<a href="#setcursor">setcursor</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="add"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">add</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>add %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to add</span>
	<div class="Space"></div>
</div><h3>add $VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to concatenate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Add a number to a numeric variable. If used with strings, performs string concatenation instead.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Replace the value stored at %0 with %0 + 6.</div>
		<pre class="ExSource">add %0,6</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Take the string variable $5 and tack "ああああ" to the end.</div>
		<pre class="ExSource">add $5,"ああああ"</pre>
	</div>
	<hr>
		<a href="#sub">sub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="addkinsoku"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.70</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">addkinsoku</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>addkinsoku STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String of characters forbidden at line start</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String of characters forbidden at line end</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This specifies additional characters to be treated as "kinsoku" - forbidden at line start/end - beyond the default sets of kinsoku characters.<br>
		The first string contains characters forbidden at the start of a line, while the second string contains characters to be forbidden at the end of a line.
	</p>
	<hr>
		<a href="#setkinsoku">setkinsoku</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="addnsadir"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.20</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">addnsadir</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>addnsadir STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Directory to check for NSA archives</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Adds a directory to check for NSA archives.</p>
	<hr>
		<a href="#nsadir">nsadir</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="allsp2hide"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">allsp2hide</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>allsp2hide</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Hides all extended sprites at the same time.	(Works essentially the same as <b>allsphide</b>.)
	</p>
	<hr>
		<a href="#allsp2resume">allsp2resume</a> / <a href="#allsphide">allsphide</a> / <a href="#allspresume">allspresume</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="allsp2resume"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">allsp2resume</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>allsp2resume</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Redisplays the extended sprites that were hidden by <b>allsp2hide</b>.	(Works essentially the same as <b>allspresume</b>.)
	</p>
	<hr>
		<a href="#allsp2hide">allsp2hide</a> / <a href="#allsphide">allsphide</a> / <a href="#allspresume">allspresume</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="allsphide"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">allsphide</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>allsphide</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Hides all sprites at the same time.</p>
	<hr>
		<a href="#allspresume">allspresume</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="allspresume"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">allspresume</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>allspresume</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Redisplays the sprites that were hidden by <b>allsphide</b>.
	</p>
	<hr>
		<a href="#allsphide">allsphide</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="amsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">amsp</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>amsp NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity (0 - 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Similar to <b>msp</b>, but moves the sprite to an absolute instead of relative position.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This moves Sprite 2 to position (5,2) and gives it an opacity of 100 (out of 255).</div>
		<pre class="ExSource">amsp 2,5,2,100</pre>
	</div>
	<hr>
		<a href="#msp">msp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="amsp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">amsp2</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>amsp2 NUM,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Similar to <b>msp2</b>, but this command changes the given extended sprite's position, scale, rotation, and opacity to absolute values instead of relatively.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Takes Extended-Sprite 0 and moves its center to (10,20) while setting its scale factors to 10% and its rotation to 5 degrees.</div>
		<pre class="ExSource">amsp2 0,10,20,10,10,5</pre>
	</div>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="arc"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">arc</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>arc STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Plugin specification</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designate an archive decompression plugin.<br>
		The character string's form is "archive-name|plugin-dll-name".<br>
		Although this can dearchive sounds, music, and images, it will not run archived scripts.<br>
		<br>
		By combining this with registry read commands, you can do many things. For instance, as in the second example below, you could easily read the Windows registry, find out that the machine had "To Heart" installed, and designate the proper archive to decompress accordingly.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This specifies using "scrunarc.dll" to open an "arc.sar" archive file.</div>
		<pre class="ExSource">arc "arc.sar|scrunarc.dll"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This specifies the archive file and plugin for "To Heart", using registry data.</div>
		<pre class="ExSource">
getreg $0,"software\leaf\toheart","datadir"
add $0,"\lvns3dat.pak|axlfpak.spi"
arc $0</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="atoi"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">atoi</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>atoi %VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to convert</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Converts a character string into a numeric variable. This works the same way as the corresponding command in C.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This won't convert full-width digit strings. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Populates %0 with 123, and %3 with the number extracted from $0.</div>
		<pre class="ExSource">
atoi %0,"123"
atoi %3,$0</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="autoclick"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">autoclick</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>autoclick NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Click-wait time (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		If the designated time (in milliseconds) passes during a click wait state, proceed automatically as if the mouse button was clicked. This command is especially useful in engine cutscenes.<br>
		If the number specified is 0, then this command will not activate.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="automode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">automode</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>automode</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This is a command developed especially for the commercial software "Gin'iro". When you use this command, you can enter Auto Mode from the menu. It is similar in concept to the "skip to next choice" option, but displays characters much more slowly (with a delay defined by automode_time). This makes it almost like a mode in which the computer reads the text to you.<br>
		<br>
		You can adjust sound playback volume from the NScr menus while Auto Mode is progressing (MP3(BGM), voice(DWAVE 0), and SE(DWAVE 1+) are all active and adjustable).<br>
		<br>
		There are future plans to add more functionality to this command, and to make things conform to predefined syntaxes.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="automode_time"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">automode_time</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>automode_time NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Wait time during Auto Mode (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">When in Auto Mode (as defined by mode_ext), and when text display is not instantaneous, this sets the delay at clickwaits in milliseconds.<br>When the value is less than zero, the delay will be proportional to the number of characters in the line, with each character contributing specified_delay ms.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="autosaveoff"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">autosaveoff</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>autosaveoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Disables automatic save points beyond the first displayed sentence.<br>
		<b>saveon</b> and <b>saveoff</b> commands will be ignored if this is used.<br>
		(Savepoints will still be updated at the beginning of a display sentence, as usual.)<br>
		Use the <b>savepoint</b> command to manually update savepoints at places other than the beginning of sentences (e.g. at a clickable map).<br>
		Timing issues may slow down returns from data updates, for example when recording a save point after drawing over the entire screen, so please use common sense.
	</p>
	<hr>
		<a href="#savepoint">savepoint</a> / <a href="#saveoff">saveoff</a> / <a href="#saveon">saveon</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="avi"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">avi</div>
</h2><h4>
	<a href="#category_movieplay" class="WordCategory">Movie Playback</a>
</h4><h3>avi STR,NUM</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Movie filename</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Interrupt flag (0: play whole thing, 1: click-interruptible)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Plays the designated AVI file. If the number is 1, then if the player clicks in the middle of movie playback, the movie will be cut short. If the number is 0, then the player is forced to watch the movie in its entirety.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bar"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bar</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>bar NUM,NUM,NUM,NUM,NUM,NUM,NUM,COLOR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Bar number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Bar current value</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Bar width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Bar height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Bar maximum value</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Bar color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Initializes and displays a (horizontal) bar. The width and height variables denote how large the bar will be when it is at max value. When it is not at max value, the bar will be proportionally smaller, of course. The bar is left-justified. As the bar simply is filled in left-to-right in the designated color, please make sure that the background color for the non-filled in area doesn't match the bar color itself. Finally, if you do not call a print command (or something similar), then of course the bar (or the bar's current status) will not be displayed onscreen.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="barclear"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">barclear</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>barclear</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Clears out bars.<br>
		You can think of the bars as being like life bars in fighting games, kind of.
	</p>
	<hr>
		<a href="#bar">bar</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bclear"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bclear</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>bclear</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Clears defined buttons.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The same as <b>btndef clear</b>? (by Mion)
		</div>
	</div>
	<hr>
		<a href="#btndef">btndef</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bcursor"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.94</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bcursor</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>bcursor</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		By default (since ver.2.94), <b>bexec</b> won't return on arrow key or Spacebar/Enter keypresses.<br>
		To force returning those keypresses as well, execute <b>bcursor</b> after <b>bclear</b> and before <b>bexec</b>.
	</p>
	<hr>
		<a href="#getcursor">getcursor</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bdef"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bdef</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>bdef STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Default sprite control string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies behavior for when no sprite buttons are being moused over. Uses the same control string format as <b>exbtn</b> and <b>spstr</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets to hide Sprite 0 whenever none of the sprite buttons are moused over.</div>
		<pre class="ExSource">bdef "C0"</pre>
	</div>
	<hr>
		<a href="#exbtn_d">exbtn_d</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bdown"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.94</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bdown</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>bdown</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		If <b>bdown</b> is executed after <b>bclear</b> and before <b>bexec</b>, <b>bexec</b> will return on a left-click even before the mouse button press is released.
	</p>
	<hr>
		<a href="#btndown">btndown</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bexec"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bexec</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>bexec $VAR[,%VAR]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Input result var</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result var (0 or more: button sprite number, -1: anything else)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Executes button processing. Both a string variable and a numeric variable may be provided as arguments.<br>
		Button processing settings remain until <b>bclear</b> is executed.<br>
		Both the timeout setting and elapsed button processing time remain until <b>btime</b> is executed.<br>
		<br>
		<b>Possible string variable return values:</b><br>
		<span class="Indent"></span><b>"LCLICK"</b> - on mouse left-click anywhere but a sprite button<br>
		<span class="Indent"></span><b>"S</b>(sprite-num)<b>"</b> - on mouse left-click within a sprite button, e.g. clicking Sprite 12 returns "S12"<br>
		<span class="Indent"></span><b>"TIMEOUT"</b> - on button processing timeout<br>
		<span class="Indent"></span><b>"RCLICK"</b> - on mouse right-click<br>
		<span class="Indent"></span><b>"MCLICK"</b> - on mouse middle-click<br>
		Letter/digit/symbol keypresses return the pressed key character (e.g. "1", "W"); note that alphabet letters will be uppercase.<br>
		Other keypress return values:<br>
		<span class="Indent"></span><b>"SPACE"</b> - Spacebar<br>
		<span class="Indent"></span><b>"RETURN"</b> - Return or Enter key<br>
		<span class="Indent"></span><b>"CTRL"</b> - any Ctrl key<br>
		<span class="Indent"></span><b>"SHIFT"</b> - any Shift key<br>
		<span class="Indent"></span><b>"UP"</b>, <b>"DOWN"</b>, <b>"LEFT"</b>, <b>"RIGHT"</b> - Up, Down, Left, or Right arrow keys<br>
		<span class="Indent"></span><b>"F1"</b> to <b>"F12"</b> - Function keys<br>
		<span class="Indent"></span><b>"PAGEUP"</b>, <b>"PAGEDOWN"</b> - PageUp or PageDown keys<br>
		<br>
		The numeric variable (if provided) will contain the sprite number of the button that was left-clicked, if applicable; if button processing ends without a sprite button being pressed, the numeric variable will have a return value of -1.<br>
		<br>
		Since <b>bexec</b> will finish on any kind of click or keypress, be sure to put this command within a loop if you need to check for a desired return condition.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The 20090422 release added support for middle-button clicks.<br>
			Note that ver.2.93 returns CCLICK instead of MCLICK from ver2.94 forward.<br>
			Also, ver.2.94 changed the default behavior for <b>bexec</b> so that it won't return on arrow key or Spacebar/Enter keypresses. This allows using arrow keys to move between buttons and the Spacebar/Enter key to "click" the current button.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Executes button processing, storing input results in $0 and %0.</div>
		<pre class="ExSource">bexec $0,%0</pre>
	</div>
	<hr>
		<a href="#btnwait">btnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bg"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bg</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>bg STR,EFFECT</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect for displaying background</span>
	<div class="Space"></div>
</div><h3>bg COLOR,EFFECT</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">#rrggbb color for background</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect for displaying background</span>
	<div class="Space"></div>
</div><h3>bg {black|white},EFFECT</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Use basic black/white for background</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect for displaying background</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Loads the background image, using the given effect and final image/color.</p>
	<hr>
		<a href="#bgalia">bgalia</a> / <a href="#effect">effect</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgalia"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bgalia</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>bgalia NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Background width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Background height</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This command should be used when you wish to create a background of special size or position.<br>
		A background pane of dimensions (width, height) is set at absolute screen position (X, Y).
	</p>
	<hr>
		<a href="#bg">bg</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgcopy"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.50</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bgcopy</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>bgcopy</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		The same as <b>bgcpy</b>; the current screen gets copied to the background screen.<br>
		The text window, etc. can be displayed on top of this.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Since ver2.51, NScr has been able to properly save the background created by this command.</div>
	</div>
	<hr>
		<a href="#draw">draw</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgm"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bgm</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgm STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Music filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays the given compressed music file in a loop. Equivalent to the <b>mp3loop</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Plays "bgm01.mp3" in a loop</div>
		<pre class="ExSource">bgm "bgm01.mp3"</pre>
	</div>
	<hr>
		<a href="#bgmonce">bgmonce</a> / <a href="#bgmvol">bgmvol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgmdownmode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.30</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091230</span> )
			</span>
		</span>
	</div>
	<div class="WordName">bgmdownmode</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgmdownmode NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">0: off, 1: on</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets whether the BGM volume should be lowered while a voice sound is playing.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets to have music volume turned down during voice playback.</div>
		<pre class="ExSource">bgmdownmode 1</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgmfadein"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.24</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">bgmfadein</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgmfadein NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">BGM playback fade-in time (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		The same as <b>bgmfadeout</b>, except that this is for fadein time.
	</p>
	<hr>
		<a href="#bgmfadeout">bgmfadeout</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgmfadeout"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.21</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">bgmfadeout</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgmfadeout NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">BGM playback fade-out time (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets BGM fadeout time in milliseconds.</p>
	<hr>
		<a href="#bgmfadein">bgmfadein</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgmonce"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bgmonce</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgmonce STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Music filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays the given compressed music file one time through. Equivalent to the <b>mp3</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Plays "bgm01.mid" once</div>
		<pre class="ExSource">bgm "bgm01.mid"</pre>
	</div>
	<hr>
		<a href="#bgm">bgm</a> / <a href="#bgmvol">bgmvol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgmstop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.01</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bgmstop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgmstop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Stops playback of compressed music.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bgmvol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.21</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">bgmvol</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>bgmvol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sound volume (0-100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the volume of the BGM. This applies to both <b>bgm</b> and <b>mp3</b> commands.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Volume changes are not saved, so manage them manually or with variables.<br>
			This does not affect the <b>play</b> instruction. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets BGM volume to maximum (100)</div>
		<pre class="ExSource">bgmvol 100</pre>
	</div>
	<hr>
		<a href="#chvol">chvol</a> / <a href="#mp3vol">mp3vol</a> / <a href="#voicevol">voicevol</a> / <a href="#sevol">sevol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="blt"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">blt</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>blt NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Onscreen top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Onscreen top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Onscreen width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Onscreen height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">In-buffer top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">In-buffer top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">In-buffer width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">In-buffer height</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Use this command if you want to blit images instantaneously on screen (as in AIR's opening engine-driven cutscene, for instance).<br>
		This utilizes the button image buffer, so please populate said buffer using <b>btndef</b> beforehand.<br>
		In cases where the width of the image button is larger than the width of the screen, the image scales accordingly.<br>
		(For instance, if one were to load 4 half-sized images and then use <b>blt</b>, then they would instantly be blitted one after another with no afterimage effects, like a high-speed animation. This effect was used in AIR.)<br>
		This command writes directly to the screen, not to the backbuffer. Therefore, after the end of the blitting, the contents of the screen may be uncertain, in which case you should use <b>ofscpy</b> (to save the old state) followed by <b>bg</b> (to load a new background).<br>
		<br>
		Even if one saves in the midst of this blitting, the images will not be screenshotted for the save caption.<br>
		Therefore, please limit your usage of this technique (for instance, a demo, or a status screen/save/load menu in an SLG).
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#ofscpy">ofscpy</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bmpcut"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bmpcut</div>
</h2><h4>
	<a href="#category_support" class="WordCategory">Development Support</a>
</h4><h3>bmpcut STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of horizontal pieces (num. of horiz. cuts + 1)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of vertical pieces (num. of vert. cuts + 1)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Splits a BMP image file into multiple pieces (new files) while preserving the original file.	The piece files are named accordingly based on the original filename and the piece position.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Cuts "test.bmp" into three pieces horizontally and in half vertically.</div>
		<pre class="ExSource">bmpcut "test.bmp",3,2</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="br"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">br</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>br</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Inserts a linefeed into the text window.<br>
		Use this when you want a blank line or something similar.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="break"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">break</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>break</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Breaks out of a single loop, proceeding to the line immediately after the loop's <b>next</b> statement.<br>
		<br>
		You cannot use this command by itself to break completely out of nested loops - you'll need to first <b>break</b> out of the inner loop, then <b>break</b> out of the outer loop.<br>
		<br>
		<b>Unrecommended method:</b><br>
		<span class="Indent"></span>BREAK *(label name)<br>
		This syntax does exist; it has the same functionality as a goto statement.<br>
		It can break you out of nested loops, but leaves the state of the inner loop intact.<br>
		This causes a fragmentation of the stack, making it hard to debug your script later, so use this syntax with extreme caution.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This displays "%0, %1", with %0 increasing from 1 to 8, and the inner loop counter %1 decreasing as the sequence (6,4,2). However, it breaks out of the inner loop after displaying a %0 or %1 that's equal to 4.</div>
		<pre class="ExSource">
*define
game
*start
for %0=1 to 8
for %1=6 to 2 step -2
%0, %1
if %0=4 &amp; %1=4 break
next
next
click
end</pre>
	</div>
	<hr>
		<a href="#for">for</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bsp"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bsp</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>bsp NUM[,STR,STR,STR]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string for mouseoff</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string for mouseover</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string for mousepress</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a button from the given sprite.<br>
		If the optional parameters are omitted, the sprite displays like so: Cell 0 on mouseoff, Cell 1 on mouseover, and (if the sprite contains at least 3 cells) Cell 2 on mousepress.<br>
		The three optional parameters are sprite control strings, with the same format used for <b>exbtn</b> and <b>spstr</b>. The first string executes when the mouse is not over the button (mouseoff), the second on mouseover of the button, and the third on mousepress of the button.<br>
		Since a control string "" does nothing, use empty control strings when you don't want one of the three mouse button events to change the display.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This command had a bug when handling control strings, but was fixed in the 20090417 release.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates a button from Sprite 1.</div>
		<pre class="ExSource">bsp 1</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates a button from Sprite 2, setting sprite control strings for mouseoff, mouseover, and mousepress.</div>
		<pre class="ExSource">bsp 2,"P3,0","P3,1","P4,1"</pre>
	</div>
	<hr>
		<a href="#spbtn">spbtn</a> / <a href="#exbtn">exbtn</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btime"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">btime</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>btime NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Timeout duration (ms)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Voice-wait flag (1: wait for voice)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies timeout duration for button processing.<br>
		If an optional parameter 1 is given after the timeout value, button processing will allow the voice channel (dwave 0) to finish playing before counting down the timeout; this is used for auto mode, etc.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets button timeout to 2 seconds.</div>
		<pre class="ExSource">btime 2000</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets button timeout to 1 second for after voices have finished.</div>
		<pre class="ExSource">btime 1000,1</pre>
	</div>
	<hr>
		<a href="#btntime">btntime</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btn</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>btn NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-shift</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-shift</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		From left to right, this is: button #, x, y, width, height, x3, y3.<br>
		This is the command you use to create and initialize buttons. Button numbers start from 1.<br>
		The resultant button starts at position (x,y) and is (width,height) big.<br>
		When a mouse cursor comes over the button, it will shift leftward and upward by x3 and y3 pixels, respectively.<br>
		Look in the "btndemo" folder of the SDK for an example script.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btnarea"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">btnarea</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>btnarea NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate setting for the area</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Use this after a call to <b>btndef</b>. It will set a region of the screen that, during a <b>btnwait</b>, will return -4 upon mouseover.<br>
		If the given Y-value is positive, the mouseover area goes from top of screen to Y; if the Y-value is negative, the mouseover area goes from -Y to bottom of screen.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			If there's more than one <b>btnarea</b> command, it seems that only the last one will work. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets from Y=400 to the bottom of the screen as a mouseover area for btnwait.</div>
		<pre class="ExSource">
btndef clear
btnarea -400</pre>
	</div>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btnwait2">btnwait2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btndef"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btndef</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>btndef STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">button image filename</span>
	<div class="Space"></div>
</div><h3>btndef clear</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Sets up an image button. The previously-defined button is cleared.<br>
		For an example, see the "btndemo" folder in the NScr SDK.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btndown"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btndown</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>btndown NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">down-flag (1: return while mouse button pressed, 0: return after click &amp; release)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		If the given flag value for <b>btndown</b> is 1, then <b>btnwait</b> will return even while the mouse button is down (normally it only returns after the mouse button has been released after a click).
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets to return from btnwait while a mouse button is pressed.</div>
		<pre class="ExSource">btndown 1</pre>
	</div>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btnwait">btnwait</a> / <a href="#isdown">isdown</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btnnowindowerase"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">btnnowindowerase</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>btnnowindowerase</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">The text window won't be erased when buttons are active.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btntime"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btntime</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>btntime NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Time limit for button wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This designates a time limit in milliseconds for the next <b>btnwait</b> or <b>btnwait2</b> period. When this command is used and a <b>btnwait</b> is activated, and if nothing happens in the specified time period, then <b>btnwait</b> will return -2.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			If <b>usewheel</b> is set, then <b>btnwait</b> will return -5 instead of -2 in this case. (by senzogawa)
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btntime2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btntime2</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>btntime2 NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Time limit for button wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is the same as <b>btntime</b>, except that the timeout will wait for voices to finish.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets so the next btnwait will have a 1 second timeout.</div>
		<pre class="ExSource">btntime2 1000</pre>
	</div>
	<hr>
		<a href="#btntime">btntime</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btnwait"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btnwait</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>btnwait %VAR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This serves as a button listener. The result value of the button is returned in the numeric variable.<br>
		<br>
		<b>Return Values</b>:<br>
		<span class="Indent"></span>0: no button was clicked<br>
		<span class="Indent"></span>-1: A right-click occured<br>
		<span class="Indent"></span>&gt;=1: Number of clicked button<br>
		<br>
		If btnwait returns a value &lt;=0 (no button clicked), then you can invoke btnwait again to enter the identical button wait state. But if btnwait returns a value &gt;=1 (some button was pressed), then the images will stay, but all button definitions will be cleared (to save memory).<br>
		Please consult the "btndemo" folder in the SDK for examples.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btnwait2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">btnwait2</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>btnwait2 %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This serves as a button listener. The result value of the button is returned in the numeric variable.<br>
		<br>
		Unlike <b>btnwait</b>, this command does not clear any button definitions. Therefore, it will keep reading the button graphic files.<br>
		Since the buttons remain in memory even after there is no use for them, you should call <b>btndef ""</b> after you're finished using them in order to free up the memory.<br>
		<br>
		<b>All Possible Return Values for btnwait</b> (most require a separate cmd to activate):<br>
		<span class="Indent"></span>&gt;=1: Number of clicked button (user-defined via <b>spbtn</b>)<br>
		<span class="Indent"></span>0: left-click, not on a button<br>
		<span class="Indent"></span>-1: right-click<br>
		<br>
		<span class="Indent"></span>-2: <b>btntime</b> timeout (without <b>usewheel</b>)<br>
		<span class="Indent"></span>-2: mouse wheel-up (if <b>usewheel</b>)<br>
		<span class="Indent"></span>-3: mouse wheel-down (if <b>usewheel</b>)<br>
		<span class="Indent"></span>-4: btnarea mouse-over (if <b>btnarea</b>)<br>
		<span class="Indent"></span>-5: <b>btntime</b> timeout (if <b>usewheel</b>)<br>
		<br>
		<span class="Indent"></span>-10: Esc key (if <b>useescspc</b>)<br>
		<span class="Indent"></span>-11: Spacebar (if <b>useescspc</b>)<br>
		<span class="Indent"></span>-12: PageUp key (if <b>getpage</b>)<br>
		<span class="Indent"></span>-13: PageDown key (if <b>getpage</b>)<br>
		<span class="Indent"></span>-19: Enter key (if <b>getenter</b>)<br>
		<span class="Indent"></span>-20: Tab key (if <b>gettab</b>)<br>
		<span class="Indent"></span>-21 to -32: F1 to F12 key (if <b>getfunction</b>)<br>
		<span class="Indent"></span>-40 to -43: ↑→↓← key (if <b>getcursor</b>)<br>
		<span class="Indent"></span>-50: Insert key (if <b>getinsert</b>)<br>
		<span class="Indent"></span>-51 to -53: Z, X, C key (if <b>getzxc</b>)<br>
		<span class="Indent"></span>-60: Skip Mode turned off (if <b>getskipoff</b>)<br>
		<span class="Indent"></span>-61: Auto Mode turned off (if <b>getskipoff</b>)<br>
		<span class="Indent"></span>-70: Mouse middle-button click (if <b>getmclick</b>)
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="btrans"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.94</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">btrans</div>
</h2><h4>
	<a href="#category_button_ex" class="WordCategory">New Button Processing</a>
</h4><h3>btrans</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Executing <b>btrans</b> after <b>bclear</b> and before <b>bexec</b>will cause button processing to treat transparent areas of sprite buttons as outside the respective buttons.
	</p>
	<hr>
		<a href="#transbtn">transbtn</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bw2a"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bw2a</div>
</h2><h4>
	<a href="#category_support" class="WordCategory">Development Support</a>
</h4><h3>bw2a STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Resulting image filename (without .BMP extension)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		When given a string "(imagename)", this generates an NScripter-style alpha image from the two files "(imagename)_w.bmp" and "(imagename)_b.bmp".<br>
		This produces the same output as the <b>bw2aconv.exe</b> program included with the NScr SDK.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Generates an NScr-style alpha image from "test_w.bmp" and "test_b.bmp".</div>
		<pre class="ExSource">bw2a "test"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="bw2a3"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.49</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">bw2a3</div>
</h2><h4>
	<a href="#category_support" class="WordCategory">Development Support</a>
</h4><h3>bw2a3 STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Resulting image filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		When given an image filename, this looks for image files by that name in folders "w" and "b", then generates an NScripter-style alpha image from them.<br>
		This works much the same as <b>bw2a</b> otherwise.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Generates an NScr-style alpha image from "w\test.bmp" and "b\test.bmp".</div>
		<pre class="ExSource">bw2a3 "test.bmp"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="caption"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">caption</div>
</h2><h4>
	<a href="#category_information" class="WordCategory">Console</a>
</h4><h3>caption STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String to use for the window title</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets the window title.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cdfadeout"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">cdfadeout</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>cdfadeout NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">CD playback fade-out time (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Designate the fade-out time of CD-DA audio, in milliseconds.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Currently, (P)ONScripter <b>cannot</b> support this command, as SDL does not support changing the CD volume. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cell"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cell</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>cell NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cell number (0 - numcells-1)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designate the displayed cell for a sprite. As this is an internal state change only, it is your duty to have it reflected on the screen afterward with a <b>print</b> command or other such method.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cellcheckexbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cellcheckexbtn</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>exbtn NUM,NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button number</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is the <b>exbtn</b> version of <b>cellcheckspbtn</b>, with the same arguments as <b>exbtn</b>.<br>
		It will only generate a complex button for sprites with two or more cells.<br>
		Check the Samples and Customization for more information on making complex buttons.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates Button 100 from Sprite 1, which will display Cell 1 of Sprite 1 and Sprite 2 when moused-over - but only if Sprite 1 has at least two cells.</div>
		<pre class="ExSource">cellcheckexbtn 1,100,"P1,1P2"</pre>
	</div>
	<hr>
		<a href="#exbtn">exbtn</a> / <a href="#cellcheckspbtn">cellcheckspbtn</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cellcheckspbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cellcheckspbtn</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>cellcheckspbtn NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works the same as <b>spbtn</b>, except that it doesn't make buttons from sprites with less than two cells.<br>
		This can be used effectively during CG mode.<br>
		(In other words, this version of <b>spbtn</b> can be quickly looped over a set of thumbnails that may have single cells.)
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Makes buttons from Sprites 0-9, but only for each sprite with more than one cell</div>
		<pre class="ExSource">
for %0=0 to 9
	cellcheckspbtn %0,%0+1
next</pre>
	</div>
	<hr>
		<a href="#spbtn">spbtn</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="chainbmp"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.20</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">chainbmp</div>
</h2><h4>
	<a href="#category_support" class="WordCategory">Development Support</a>
</h4><h3>chainbmp STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Attaches the given image onto the right-side edge of "out.bmp".<br>
		This creates "out.bmp" from the image if it does not already exist.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The image should be the same height as "out.bmp".</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="checkkey"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.92</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091230</span> )
			</span>
		</span>
	</div>
	<div class="WordName">checkkey</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>checkkey %VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable (1: got specified keypress, 0: didn't)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Key type</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Checks if there was a specified keypress at the last <b>btnwait</b> command, returning 1 if the desired key was pressed.<br>
		Allowed key types are single half-width alphabet characters, digits, or spaces, or else one of the following macros:<br>
		<span class="Indent"></span>"SPACE" - Spacebar<br>
		<span class="Indent"></span>"RETURN" or "ENTER" - Enter key<br>
		<span class="Indent"></span>"CTRL" - any Ctrl key<br>
		<span class="Indent"></span>"UP"/"DOWN"/"LEFT"/"RIGHT" - Up/Down/Left/Right arrow key<br>
		<span class="Indent"></span>"F1" ... "F12" - the given Function key<br>
		<span class="Indent"></span>"PAGEUP"/"PAGEDOWN" - PageUp/PageDown key<br>
		<span class="Indent"></span>"SHIFT" - any Shift key
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Does a btnwait. %1 is set to 1 if the Spacebar was pressed, 0 otherwise; %2 is set to 1 if Enter key was pressed, 0 otherwise.</div>
		<pre class="ExSource">
btnwait %0
checkkey %1," "
checkkey %2,"ENTER"</pre>
	</div>
	<hr>
		<a href="#btnwait">btnwait</a> / <a href="#selectbtnwait">selectbtnwait</a> / <a href="#textbtnwait">textbtnwait</a> / <a href="#textgosub">textgosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="checkpage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">checkpage</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>checkpage %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Previous page (number of pages back; 0 = current page)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Checks whether the log string of a backlog page is available (to <b>getlog</b>, for example).<br>
		The second parameter tells the number of pages prior to the current one to check for.<br>
		The first parameter will be set to 1 if the page is available, 0 if not.<br>
		Please provide a value of 1 or more for the second parameter, noting that, since 0 is the current page, it would always be available.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Set %5 based on whether or not the last page backlog is available.</div>
		<pre class="ExSource">checkpage %5,1</pre>
	</div>
	<hr>
		<a href="#getlog">getlog</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="chkcdfile"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.99</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">chkcdfile</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>chkcdfile STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">File name to check for</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Error message to display</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This checks for the given file on the CD drive.<br>
		If it cannot find the file, it displays the given error message in a popup box with buttons "Retry" and "Cancel".
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This checks the CD for "file.dat".</div>
		<pre class="ExSource">chkcdfile "file.dat","CDがありません"</pre>
	</div>
	<hr>
		<a href="#chkcdfile_ex">chkcdfile_ex</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="chkcdfile_ex"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.20</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">chkcdfile_ex</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>chkcdfile_ex %VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">File name to check for</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This checks for the given file on the CD drive.<br>
		It sets the result to 1 if it finds the file, 0 otherwise.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This checks the CD for "file.dat" and assigns the result to %0.</div>
		<pre class="ExSource">chkcdfile_ex %0,"file.dat"</pre>
	</div>
	<hr>
		<a href="#chkcdfile">chkcdfile</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="chvol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">chvol</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>chvol NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">DWAVE channel number (0 - 49)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sound volume (0-100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Changes the volume of the given DWAVE channel.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Channel volume changes are not saved, so manage them manually or with variables.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets Channel 3 volume to maximum (100)</div>
		<pre class="ExSource">chvol 3,100</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cl"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cl</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>cl {l,c,r,a},EFFECT</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">standing pic position (l: left, c: center, r: right, a: all)</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect for removing standing picture(s)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Clear a standing image from the current picture.<br>
		If you specify 'a', then that will clear all of them.
	</p>
	<hr>
		<a href="#effect">effect</a> / <a href="#ld">ld</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="click"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">click</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>click</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Wait for a click.</p>
	<hr>
		<a href="#lrclick">lrclick</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="clickpos"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">clickpos</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>clickpos %VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">X-coordinate at last click</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Y-coordinate at last click</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Returns the position of the last click - the first variable is x, the second variable is y.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="clickskippage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.60</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">clickskippage</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>clickskippage</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">The script will wait at clickwaits as usual, except that if a click happens while text is being output, then display will jump to the next pagewait (instead of the next clickwait as normal).</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="clickstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">clickstr</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>clickstr STR,NUM</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Clickwait characters</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Lines left on page to activate pagewait</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This function forces a click wait state when the interpreter encounters one of the characters in the given string.<br>
		However, if there happens to be a click wait command directly after that character, or if that character is prefaced by a 1-byte underscore (_), then this forced click wait state will not occur.<br>
		The second parameter decides whether this will be a simple click-wait or a new-page wait. If the clickstr char occurs on a line past (max textwindow lines - number), then it will use a new-page wait.<br>
		This function is convenient, but be careful -- exceptionally long lines may still overflow the textarea. In such situations, you may want to use a standard new-page wait or some other manual adjustment.<br>
		Please note that the character string should only contain double-byte chars.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Cause a clickwait at characters '」', '。', '！', '？'</div>
		<pre class="ExSource">clickstr "」。！？",2</pre>
	</div>
	<hr>
		<a href="#_atsign">@</a> / <a href="#_backslash">\</a> / <a href="#_underscore">_</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="clickvoice"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">clickvoice</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>clickvoice STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound for click-wait</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound for page-wait</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Specifies sounds to play when a button is clicked during a click wait state. The first string is the name of the WAV file played for a click wait state, while the second string is the WAV file played for a new-page click wait state.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cmp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cmp</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>cmp %VAR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for result of comparison</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string #1</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string #2</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Compares two character strings. Returns 0 if equal, a positive value if the first string comes before in sorting order, and a negative value if the second string comes before in sorting order.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			In recent NScripter, if you just need to see if strings are equal, <b>==</b> and <b>!=</b> will do the job - you needn't use <b>cmp</b>. (by senzogawa)
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cos"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cos</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>cos %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Angle (in degrees)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Acquires the trigonometric cosine of the given angle, and returns the value multiplied by 1000.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assigns the cosine of 60 degrees to %1.</div>
		<pre class="ExSource">
cos %1,60
;%1=500, since cos(60)=0.5</pre>
	</div>
	<hr>
		<a href="#sin">sin</a> / <a href="#tan">tan</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="createdummy"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.20</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">createdummy</div>
</h2><h4>
	<a href="#category_support" class="WordCategory">Development Support</a>
</h4><h3>createdummy STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Dummy image filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a dummy 640x480 image file of the given name.<br>
		The image will contain the file name in large black letters on a white background.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The image will be 640x480 even if the screen size was changed, like with <b>mode800</b>. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates a dummy image file called "test.bmp".</div>
		<pre class="ExSource">createdummy "test.bmp"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csel"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">csel</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>csel STR,LABEL[,STR,LABEL[,...]]</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Choice string to display</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Choice select destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets a selection of choices to display using system customization. <b>*customsel</b> is called to handle the customized display. This command uses the same syntax as <b>select</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets up a customized selection where "Choice１" goes to *s1, "Choice２" goes to *s2, and "Choice３" goes to *s3.</div>
		<pre class="ExSource">csel "Choice１",*s1,"Choice２",*s2,"Choice３",*s3</pre>
	</div>
	<hr>
		<a href="#_customsel-label">*customsel</a> / <a href="#cselbtn">cselbtn</a> / <a href="#cselgoto">cselgoto</a> / <a href="#getcselnum">getcselnum</a> / <a href="#getcselstr">getcselstr</a> / <a href="#selectbtnwait">selectbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cselbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cselbtn</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>cselbtn NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Choice index number (starting at 0)</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Creates a button from the text of the given choice number - no need to specify the string or sprite number.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Giving coordinates that are not within the text window will cause an error. It is necessary to use <b>getcselstr</b> and a different button command to display the choice text outside the text window. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Displays the first choice string as button 500 at position (%1,%2).</div>
		<pre class="ExSource">cselbtn 0,500,%1,%2</pre>
	</div>
	<hr>
		<a href="#csel">csel</a> / <a href="#_customsel-label">*customsel</a> / <a href="#cselgoto">cselgoto</a> / <a href="#getcselnum">getcselnum</a> / <a href="#getcselstr">getcselstr</a> / <a href="#selectbtnwait">selectbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="cselgoto"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">cselgoto</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>cselgoto NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Choice index number (starting at 0)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Jumps to the label of the given choice index set by <b>csel</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Jumps to the choice label indexed by the number in %0.</div>
		<pre class="ExSource">cselgoto %0</pre>
	</div>
	<hr>
		<a href="#csel">csel</a> / <a href="#_customsel-label">*customsel</a> / <a href="#cselbtn">cselbtn</a> / <a href="#getcselnum">getcselnum</a> / <a href="#getcselstr">getcselstr</a> / <a href="#selectbtnwait">selectbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">csp</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>csp NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999), or -1 for all</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Erases the given sprite.<br>
		If the given value is -1, it erases all sprites.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">csp2</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>csp2 NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255), or -1 for all</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Erases the given extended sprite.<br>
		If the given value is -1, it erases all extended sprites.
	</p>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csvclose"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.63</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">csvclose</div>
</h2><h4>
	<a href="#category_csvfile" class="WordCategory">CSV File Manipulation</a>
</h4><h3>csvclose</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Closes an open CSV file.	Please use this command when finished with the file; otherwise it will remain open.</p>
	<hr>
		<a href="#csvopen">csvopen</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csveof"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.63</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">csveof</div>
</h2><h4>
	<a href="#category_csvfile" class="WordCategory">CSV File Manipulation</a>
</h4><h3>csveof %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">numeric result variable (0: not at end of file, 1: at end of file)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		(For use in read mode only)<br>
		Detects whether or not the end of a CSV file has been reached.<br>
		Returns 1 if so, 0 if not.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the value of %1 depending on the end status of the CSV file.</div>
		<pre class="ExSource">csveof %1</pre>
	</div>
	<hr>
		<a href="#csvread">csvread</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csvopen"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.63</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">csvopen</div>
</h2><h4>
	<a href="#category_csvfile" class="WordCategory">CSV File Manipulation</a>
</h4><h3>csvopen STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">CSV file name</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">file access mode</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Opens a given CSV file, using the given file access mode.<br>
		The possible modes are:<br>
		<span class="Indent"></span><b>"r"</b> - read mode; reads a standard CSV file<br>
		<span class="Indent"></span><b>"rc"</b> - read encrypted mode; reads a CSV file written in "wc" mode<br>
		<span class="Indent"></span><b>"w"</b> - write mode; write to a standard CSV file<br>
		<span class="Indent"></span><b>"wc"</b> - write encrypted mode; writes an encrypted CSV file<br>
		<br>
		Note that it's possible to open a CSV file inside an NSA archive, but only for reading.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The CSV file will be closed automatically at a <b>reset</b> command. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Opens "test.csv" for reading.</div>
		<pre class="ExSource">csvopen "test.csv","r"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Opens "angou.csv" for encrypted writing.</div>
		<pre class="ExSource">csvopen "angou.csv","wc"</pre>
	</div>
	<hr>
		<a href="#csvread">csvread</a> / <a href="#csvwrite">csvwrite</a> / <a href="#csveof">csveof</a> / <a href="#csvclose">csvclose</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csvread"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.63</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">csvread</div>
</h2><h4>
	<a href="#category_csvfile" class="WordCategory">CSV File Manipulation</a>
</h4><h3>csvread %VAR|$VAR[,...]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">numeric or string variable for extracted CSV item</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		(For use in read mode only)<br>
		Reads data items from a CSV file, in the specified order.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Reads 4 data items from a CSV file and assigns them to $0, $1, %0, and %2 (in that order).</div>
		<pre class="ExSource">csvread $0,$1,%0,%2</pre>
	</div>
	<hr>
		<a href="#csvopen">csvopen</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="csvwrite"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.63</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">csvwrite</div>
</h2><h4>
	<a href="#category_csvfile" class="WordCategory">CSV File Manipulation</a>
</h4><h3>csvwrite STR|NUM[,...]</h3><div class="Arguments">
	<span class="ArgType">VAL</span>
	<span class="ArgMeaning">numeric or string value to write</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		(For use in write mode only)<br>
		Writes data items to a CSV file, in the specified order.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Writes 4 data items to a CSV file: 12, "test", %1, and $2.</div>
		<pre class="ExSource">csvwrite 12,"test",%1,$2</pre>
	</div>
	<hr>
		<a href="#csvopen">csvopen</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="date"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">date</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>date %VAR,%VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the retrieved year</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the retrieved month</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the retrieved date</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the current date, in numeric values.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="debuglog"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.61</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">debuglog</div>
</h2><h4>
	<a href="#category_support" class="WordCategory">Development Support</a>
</h4><h3>debuglog NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Debug logging flag (0: off, 1: on)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">If enabled, saves the message displayed in the debug window to "debuglog.txt".</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dec"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dec</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>dec %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable to decrement</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Decrements said variable by 1.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defaultfont"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">defaultfont</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>defaultfont STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Defines a default font.<br>
		NScripter defaults to MS Gothic if this command is not used.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">In NScripter, until "envdata" file is erased, changing or adding this command will not affect a game font. (by senzogawa)</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			ONScripter(-EN) technically allows this command, but doesn't do anything with the given font (using a local "default.ttf" font file instead).<br>
			PONScripter sets fonts using <b>pmapfont</b>.<br>
			Neither use Windows system fonts, only local font files. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defaultspeed"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">defaultspeed</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>defaultspeed NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Slow default text display speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Medium default text display speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Fast default text display speed</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designate text speeds (character delays, in msec) to use when the interpreter encounters <b>textspeeddefault</b> or the special text command <b>!sd</b>.<br>
		From left to right, the numbers correspond to 低速(Slow), 普通(Medium), and 高速(Fast) in the textspeed menu.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Although (P)ONScripter does not provide a menubar, you can select among the textspeeds using keystrokes: '1' for slow, '2' for medium, '3' for fast, and '0' to toggle between all three.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the default text speeds as 50 for "Slow", 20 for "Medium", and 0 for "Fast".</div>
		<pre class="ExSource">defaultspeed 50,20,0</pre>
	</div>
	<hr>
		<a href="#_bang-sd">!sd</a> / <a href="#textspeeddefault">textspeeddefault</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defbgmvol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.37</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">defbgmvol</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>defbgmvol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default volume (0 - 100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets the default volume for BGM, from a range of 0-100. Is 100 by default.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="definereset"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">definereset</div>
</h2><h4>
	<a href="#category_startend" class="WordCategory">Game Start/End/Quit</a>
</h4><h3>definereset</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This is a special reset command that forces reinterpretation of the script starting at <b>*define</b>.
	</p>
	<hr>
		<a href="#_define-label">*define</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defmp3vol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">defmp3vol</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>defmp3vol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default volume (0 - 100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets the default volume for mp3s (BGM), from a range of 0-100. Is 100 by default.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defsevol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">defsevol</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>defsevol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default volume (0 - 100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets default volume for sound effects (DWAVE 1+). Ranges from 0 to 100. Is 100 by default.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defsub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.40</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">defsub</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>defsub NAME</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Subroutine label name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This creates a user-defined command.<br>
		It will be called as a subroutine (i.e. via <b>gosub</b>).
		Even though this follows variable naming conventions, user-defined command names may not begin with "_".
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			It's possible to define a user command with the same name as a built-in command.<br>
			When this is the case, please use <b>_name</b> instead of <b>name</b> to call the original command - see the second example.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Defines and calls the "subname" subroutine.</div>
		<pre class="ExSource">
defsub subname
; stuff happens here
subname
; just returned from calling *subname
end
*subname
; got here via a gosub or call to user-def command
return</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Defines and calls the "texton" subroutine while also using the "texton" command.</div>
		<pre class="ExSource">
*define
defsub *texton
game

*start
texton ; does "gosub *texton"
_texton ; calls the original "texton" command</pre>
	</div>
	<hr>
		<a href="#getparam">getparam</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="defvoicevol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">defvoicevol</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>defvoicevol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default volume (0 - 100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets default volume for voices (DWAVE 0). Ranges from 0 to 100. Default value is 100.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="delay"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">delay</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>delay NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amount of time to wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Causes a delay of specified time (in milliseconds) that may be escaped out of by clicking.<br>
		This works the same as the special text command '!d', but here you can supply a variable as the argument.
	</p>
	<hr>
		<a href="#_bang-d">!d</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="deletemenu"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.03</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">deletemenu</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>deletemenu</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Completely removes the Windows menubar from NScripter.</p>
	<hr>
		<a href="#killmenu">killmenu</a> / <a href="#resetmenu">resetmenu</a> / <a href="#insertmenu">insertmenu</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="deletescreenshot"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.30</span>
			</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">deletescreenshot</div>
</h2><h4>
	<a href="#category_screenshot" class="WordCategory">Screenshot</a>
</h4><h3>deletescreenshot</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Removes a screenshot image from memory.<br>
		This command is meant to be used with <b>savescreenshot2</b>.
	</p>
	<hr>
		<a href="#getscreenshot">getscreenshot</a> / <a href="#savescreenshot">savescreenshot</a> / <a href="#savescreenshot2">savescreenshot2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dim"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dim</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>dim '?'NUM'['NUM']' [ '['NUM']'... ]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Array number (0 - 199)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Dimension length (actual # of elements is length+1)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This defines BASIC-style arrays. For example, "dim ?0[10][20]" makes an array named ?0, with array slots from 0-10, and each slot has subslots from 0-20.<br>
		In this fashion, you can use arrayed variables as if they were simple numeric variables.<br>
		You can also make your code easier to read by using <b>numalias</b>, as in the second example.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Remember, the contents of an array start at 0, so please be careful when allocating them!</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">An example of array usage</div>
		<pre class="ExSource">
mov ?0[2][5],20
;populates ?0[2][5] with value 20.
mov %4,?0[3][1]
; populates %4 with the value from ?0[3][1].
ＶＡＬ＝?0[2][3]@
;used in text</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Using an alias with an array</div>
		<pre class="ExSource">
numalias enemyparam,10
dim ?enemyparam[10]</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="div"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">div</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>div %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to divide by</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Divides the variable by the number, truncating the remainder.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="draw"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">draw</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>draw</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Sends images created via demo draw commands (e.g. <b>drawbg</b>, <b>drawsp</b>) directly to the screen.<br>
		Otherwise, the results of the draw commands will not be displayed.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Displays "bg.bmp" while rotating it counter-clockwise.</div>
		<pre class="ExSource">
*test
saveoff
;Demo image processing is faster with saveoff. Don't forget to reenable saveon when you're done!
mov %0,0
bg "bg.bmp",1
*lp
resettimer
drawclear
drawbg2 320,240,100,100,%0*2
draw
wait 5
;ウェイトを多少いれないと、メッセージ処理が遅れがちになります。
gettimer %1
if %1&gt;=50 add %0,%1/50
if %1&lt;50 waittimer 50:inc %0
;掛かった処理時間に比例して変数を変化させます。
goto *lp</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawbg"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawbg</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawbg</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Draws the background image to the screen.<br>
		Must be followed by the <b>draw</b> command.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Note that neither the sprites, standing images, nor text window will be displayed.</div>
	</div>
	<hr>
		<a href="#draw">draw</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawbg2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawbg2</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawbg2 NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Width scaling factor (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Height scaling factor (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counter-clockwise)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Draws the background image to the screen, using the given center coordinates, scaling factors, and rotation.<br>
		The previous image can still be seen in sections outside the rotated image rectangle; use <b>drawclear</b> beforehand if this is undesirable.<br>
		This command must be followed by the <b>draw</b> command.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Note that neither the sprites, standing images, nor text window will be displayed.<br>
			Also note that this command uses center coordinates, not top-left coordinates like most other commands.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Draw the background image centered at (320,240), scaled times 2 in width, times 3 in height, and rotated 15 degrees counter-clockwise.</div>
		<pre class="ExSource">drawbg2 320,240,200,300,15</pre>
	</div>
	<hr>
		<a href="#draw">draw</a> / <a href="#drawclear">drawclear</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawclear"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawclear</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawclear</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Paints over the entire screen with the color black.<br>
		Must be followed by the <b>draw</b> command.
	</p>
	<hr>
		<a href="#draw">draw</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawfill"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawfill</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawfill NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Red component of RGB color (0-255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Green component of RGB color (0-255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Blue component of RGB color (0-255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Paints over the entire screen with the given color, as provided with separate R,G,B levels.<br>
		Must be followed by the <b>draw</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Paints over the screen with color #FF0080.</div>
		<pre class="ExSource">drawfill 255,0,128</pre>
	</div>
	<hr>
		<a href="#draw">draw</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawsp</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawsp NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cell number (of sprite)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity (0-255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Draws a sprite to the screen, using the given sprite number, cell number, opacity, and top-left coordinates.<br>
		The position and show/hide status of the actual sprite are not used, just the image itself.<br>
		The sprite will be drawn on top of previous drawn items, like from other <b>drawsp</b> or <b>drawtext</b>.<br>
		This command must be followed by the <b>draw</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Draw Sprite 2, Cell 1 with top-left at (20,40) and half-transparency (128).</div>
		<pre class="ExSource">drawsp 2,1,128,20,40</pre>
	</div>
	<hr>
		<a href="#draw">draw</a> / <a href="#drawtext">drawtext</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawsp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawsp2</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawsp2 NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cell number (of sprite)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity (0-255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Width scaling factor (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Height scaling factor (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counter-clockwise)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Draws a sprite to the screen, using the given sprite number, cell number, opacity, center coordinates, scaling factors, and rotation.<br>
		The position and show/hide status of the actual sprite are not used, just the image itself.<br>
		The sprite will be drawn on top of previous drawn items, like from other <b>drawsp</b> or <b>drawtext</b>.<br>
		This command must be followed by the <b>draw</b> command.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Note that this command uses center coordinates, not top-left coordinates like most other commands.<br>
			In Nscr ver2.51 and earlier, this command had a bug when applying the opacity parameter to sprites with alpha values: 0 was treated as opaque, and 255 as transparent.<br>
			When running a script created using an earlier NScr version, the third parameter of <b>drawsp2</b> must be corrected to work properly with NScr ver2.52 and above.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Draw Sprite 2, Cell 1 at half-transparency (128), centered at (20,40), with 150% width, 60% height, and rotated 10 degrees clockwise.</div>
		<pre class="ExSource">drawsp2 2,1,128,20,40,150,60,-10</pre>
	</div>
	<hr>
		<a href="#draw">draw</a> / <a href="#drawsp">drawsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawsp3"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.60</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawsp3</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawsp3 NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cell number (of sprite)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity (0-255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Matrix top-left coefficient</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Matrix top-right coefficient</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Matrix bottom-left coefficient</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Matrix bottom-right coefficient</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Like <b>drawsp</b>, this command draws a sprite to the screen - but it first applies a linear transformation.<br>
		It uses the given sprite number, cell number, opacity, and linear transformation matrix.<br>
		The given matrix coefficients will be divided by 1000 before being applied, so that, for example, a parameter of 1600 yields a coefficient of 1.6.<br>
		This command must be followed by the <b>draw</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Draw Sprite 2, Cell 1 at half-transparency (128), with top-left at (20,40), after applying the linear transformation [ 1.5, 0.3; 0.8, 1.2 ].</div>
		<pre class="ExSource">drawsp3 2,1,128,20,40,1500,300,800,1200</pre>
	</div>
	<hr>
		<a href="#draw">draw</a> / <a href="#drawsp">drawsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="drawtext"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.31</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">drawtext</div>
</h2><h4>
	<a href="#category_draw" class="WordCategory">Demo Draw Commands</a>
</h4><h3>drawtext</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Draws the text window.<br>
		Sprites drawn earlier (e.g. with <b>drawsp</b>) will appear below the text, and sprites drawn after this command will appear above the text.<br>
		This command must be followed by the <b>draw</b> command.
	</p>
	<hr>
		<a href="#draw">draw</a> / <a href="#drawsp">drawsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dsound"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dsound</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dsound</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">You use this in the define block in order to turn on DirectSound. You'll need DirectX 2+ in order to use this command. In the later versions of NScripter (1.97+), it is no longer necessary to set this command. </p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dv"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dv</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>'dv'NUM':'</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Voice file number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is a shorthand command for playing voice files.<br>
		It is equivalent to <b>dwave 0,"voice\(num).wav"</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "voice\0001.wav" via the dwave command on channel 0 before outputting text.</div>
		<pre class="ExSource">dv0001:「これが０００１番のせりふだよー」</pre>
	</div>
	<hr>
		<a href="#dwave">dwave</a> / <a href="#v">v</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dwave"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dwave</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dwave NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Channel number (0 - 49)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays a WAV file using DirectSound, using the specified number as the channel number (from 0-49). Different WAV files will be mixed automatically this way as they are encountered. If you wanted all voices to be played in succession (text waits for voice) in Auto Mode, you'd set all voices to channel 0. Only PCM files can be played using this command.<br>
		This command is used in the same way as the wave command, with the added advantage of the mixing -- so if you were playing an mp3 as background music, you'd want to use dwave for voices and sound effects.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			If a WAV file from an NSA archive is played via the <b>wave</b> command, and then an attempt is made to play it with <b>dwave</b> without first using <b>wavestop</b> or <b>stop</b>, this will cause an error (since Ver.2.54). (by senzagawa)
		</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The number of available channels was increased from 50 to 200 (0-199) in NScr ver2.82. (by Mion)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "test.wav" in channel 0 just once.</div>
		<pre class="ExSource">dwave 0,"test.wav"</pre>
	</div>
	<hr>
		<a href="#dwavestop">dwavestop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dwaveload"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dwaveload</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dwaveload NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Channel number (0 - 49)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads a WAV file into memory for use with the commands <b>dwaveplay</b> and <b>dwaveplayloop</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Trying a <b>dwaveplay</b> without first loading will cause an error. (by senzagawa)<br>
			Also, this command can't be used with OGG files. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This loads "test.wav" into channel 0, then plays it just once.</div>
		<pre class="ExSource">
dwaveload 0,"test.wav"
dwaveplay 0</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dwaveloop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dwaveloop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dwaveloop NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Channel number (0 - 49)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		The same as <b>dwave</b>, but in this case it loops the WAV file.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			If a WAV file from an NSA archive is played via the <b>wave</b> command, and then an attempt is made to play it with <b>dwaveloop</b> without first using <b>wavestop</b> or <b>stop</b>, this will cause an error (since Ver.2.54). (by senzagawa)
		</div>
	</div>
	<hr>
		<a href="#dwavestop">dwavestop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dwaveplay"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dwaveplay</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dwaveplay NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Channel number (0 - 49)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays the file loaded by <b>dwaveload</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Trying a <b>dwaveplay</b> without first loading will cause an error. Also, this command can't be used with OGG files. (by senzogawa)<br>
			But it doesn't cause a error (in NScr) if you use ogg.dll. (by senzogawa)<br>
			After this instruction, it seems you need to use <b>chvol</b> to change the volume. (by senzogawa)
		</div>
	</div>
	<hr>
		<a href="#dwaveload">dwaveload</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dwaveplayloop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dwaveplayloop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dwaveplayloop NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Channel number (0 - 49)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loops the WAV file loaded by <b>dwaveload</b>.
	</p>
	<hr>
		<a href="#dwaveload">dwaveload</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="dwavestop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">dwavestop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>dwavestop NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Channel number (0 - 49)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Silences that particular channel.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="effect"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">effect</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>effect NUM,NUM[,NUM[,STR]]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Effect number (2 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Built-in effect number (1 - 18,)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Duration (msec)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Mask filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Build an Effect Number from a built-in effect.<br>
		Once you have an Effect Number assigned, you can use it in image display commands.<br>
		From left to right, the variables are: effect number, built-in effect index, effect runtime (in milliseconds), and pattern image filename.<br>
		For some built-in effects, you may omit the last two variables.<br>
		<br>
		Effect 0 is reserved for storing image changes to be displayed at the next image display command, so please number your effects starting at 1.<br>
		When you use Effect 0, please remember to call an image display command as soon as possible afterwards.<br>
		<br>
		By default, built-in effect 1 is not an effect at all - it sets the effect runtime to 0 for instantaneous display.<br>
		<br>
		<b>Built-in effect index:</b>
		<br>
		<span class="Indent"></span>1. Instantaneous display. No runtime variable needed.<br>
		<span class="Indent"></span>2. Left-sided shutter<br>
		<span class="Indent"></span>3. Right-sided shutter<br>
		<span class="Indent"></span>4. Upwards shutter<br>
		<span class="Indent"></span>5. Downwards shutter<br>
		<span class="Indent"></span>6. Left-moving curtain<br>
		<span class="Indent"></span>7. Right-moving curtain<br>
		<span class="Indent"></span>8. Upwards curtain<br>
		<span class="Indent"></span>9. Downwards curtain<br>
		<span class="Indent"></span>10. Pixelwise crossfade<br>
		<span class="Indent"></span>11. Left-moving scroll<br>
		<span class="Indent"></span>12. Right-moving scroll<br>
		<span class="Indent"></span>13. Upwards scroll<br>
		<span class="Indent"></span>14. Downwards scroll<br>
		<span class="Indent"></span>15. Fade via mask pattern. You must provide a filename pointing to a mask image (of either 256 colors or full color). Within a masked image, the white areas fade slowly, and the black areas fade quickly.<br>
		<span class="Indent"></span>16. Mosaic out. After this effect is called, the state of the screen will be uncertain (like with Effect 0), so please call a display command, like print, immediately afterwards.<br>
		<span class="Indent"></span>17. Mosaic in<br>
		<span class="Indent"></span>18. Crossfade via mask. This works similarly to Effect 15, except it is far more processor intensive, so use it with care.<br>
		<br>
		<b>Special Plugin Effects:</b> (added NScr ver2.03)<br>
		<span class="Indent"></span>99. This "built-in effect" is a placeholder for plugin-provided effects, but cannot be used to define an Effect Number using <b>effect</b> (in Nscripter). It may be used anywhere else an effect specification is allowed. See <b>print</b> for more details.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets Effect 2 to be an upwards shutter of one second.</div>
		<pre class="ExSource">effect 2,4,1000</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets Effect 3 to be a two second masked fade.</div>
		<pre class="ExSource">effect 3,15,2000,"m3.bmp"</pre>
	</div>
	<hr>
		<a href="#print">print</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="effectblank"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">effectblank</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>effectblank NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Wait time before next command (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This simply sets (in milliseconds) how long the interpreter should wait after an effect is finished before interpreting the next command.<br>
		If the effect was built-in effect 1, then the delay from this command doesn't take place.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="effectcut"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">effectcut</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>effectcut</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Skip all effects in "skip to next choice" mode.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="effectskip"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.92</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">effectskip</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>effectskip NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Effect skip flag (0: skip not allowed, 1: skip allowed)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies whether effects can be skipped if a click occurs during the effect.<br>
		The default value is 1 (skip allowed); setting this to 0 means effects cannot be skipped using mouse clicks.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Allows skipping during an effect with click.</div>
		<pre class="ExSource">effectskip 1</pre>
	</div>
	<hr>
		<a href="#effect">effect</a> / <a href="#print">print</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="end"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">end</div>
</h2><h4>
	<a href="#category_startend" class="WordCategory">Game Start/End/Quit</a>
</h4><h3>end</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">End the program and close the window.</p>
	<hr>
		<a href="#game">game</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="english"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.82</span> )
			</span>
		</span>
	</div>
	<div class="WordName">english</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>english</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Enables NScripter English mode. Only half-width alphabetical sentences will be displayed correctly.<br>
		Please begin text with the "&gt;" character when using this mode.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This seems to have been added in the 2007/11/04 release. Note that standard text commands like <b>#rrggbb</b> and <b>!sd</b> do not work in this mode; see the related commands for alternatives. (by senzogawa)
		</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			ONScripter may support this somewhat, but considering its existing support for single-byte text, and the fact that NScripter <b>english</b> mode doesn't work with most text commands, why bother using it? (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Displays the text "Peter Piper picked a peck of pickled peppers;"</div>
		<pre class="ExSource">
*define
english
game
*start
&gt;Peter Piper picked a peck of pickled peppers;@
end</pre>
	</div>
	<hr>
		<a href="#textcolor">textcolor</a> / <a href="#textspeed">textspeed</a> / <a href="#textspeeddefault">textspeeddefault</a> / <a href="#delay">delay</a> / <a href="#wait">wait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="erasetextbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.65</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">erasetextbtn</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>erasetextbtn</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">After exiting a button wait, if a textbutton was pressed, then this command will set the textbutton back to its original color.</p>
	<hr>
		<a href="#_anglebrackets">&lt;&gt;</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="erasetextwindow"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">erasetextwindow</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>erasetextwindow NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Flag (0: leave window as is, 1: remove during effects)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		If 0, the text window stays during effect runtime.<br>
		If 1 (this is the default), the text window is hidden during effect runtime.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="errorsave"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.99</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">errorsave</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>errorsave</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">This command specifies that, when an error occurs, the current game state should be stored automatically in Savefile 999; this may be useful for game debugging purposes.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="exbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">exbtn</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>exbtn NUM,NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button number</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is exactly the same as <b>spbtn</b>, with the addition of a trailing control string.<br>
		In short, when the player mouses over a button controlled by <b>exbtn</b>, the button isn't just shifted - control over screen graphics is exerted as per the sprite control string.<br>
		<br>
		The control string can contain any of the following commands:<br>
		<span class="Indent"></span>"<b>C</b>(sprite-num)": hides the sprite with the given number.<br>
		<span class="Indent"></span>"<b>P</b>(sprite-num)": displays the sprite with the given number.<br>
		<span class="Indent"></span>"<b>P</b>(sprite-num),(cell-num)": displays a particular cell of the given sprite.<br>
		<span class="Indent"></span>"<b>M</b>(sprite-num),(x),(y)": moves the given sprite to coordinates (x,y).<br>
		<span class="Indent"></span>"<b>S</b>{channel-num},({sound-file})": plays the given sound file.<br>
		<span class="Indent"></span><span class="Indent"></span>For example: "S1(beep.wav)" plays "beep.wav" on channel 1.<br>
		<br>
		You can combine any number of these options in your control string.<br>
		<br>
		When using composite buttons, there needs to be an assignment for what occurs when the mouse cursor isn't touching any part of the button - set this using <b>exbtn_d</b>.<br>
		<br>
		Buttons, like any other graphic, can be loaded as image filename character strings or as sprites.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Clears Sprite 10.</div>
		<pre class="ExSource">spstr "C10"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Clears Sprite 11 and displays Sprite 10.</div>
		<pre class="ExSource">spstr "C11P10"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Clears Sprite 11, displays cell 2 of Sprite 10, and displays Sprite 9.</div>
		<pre class="ExSource">spstr "C11P10,2P9"</pre>
	</div>
	<hr>
		<a href="#exbtn_d">exbtn_d</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="exbtn_d"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">exbtn_d</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>exbtn_d STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Determines the state of the composite button when the mouse cursor is on no part of it. See the documentation for <b>exbtn</b> for the format of the control string.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">When the mouse is off the composite button, this displays Sprite 3, clears Sprites 4 5 &amp; 6, and displays cell 0 of Sprite 7.</div>
		<pre class="ExSource">exbtn_d "P3C4C5C6P7,0"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="exec_dll"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">exec_dll</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>exec_dll STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">DLL filename followed by parameters</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Calls the given DLL with the specified parameters.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">(P)ONScripter recognizes this command but does a value lookup in a text file called "dll.txt" using the DLL name and parameters, instead of calling an actual DLL; note that this is more a crutch than an implementation. (by Mion)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Calls "execdll.dll" with the parameter string "テストですよー。".</div>
		<pre class="ExSource">exec_dll "execdll.dll/テストですよー。"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="fchk"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">fchk</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>fchk STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Filename of image to confirm</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Checks to see whether an image tag has been recorded in the file log.<br>
		This is used as a conditional for an <b>if</b> statement. If the image has been loaded and may be used in-game, this returns true; if not, or if the filename was incorrect, this returns false.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment"></div>
		<pre class="ExSource">
ld c,":a;test.bmp",1
if fchk ":a;test.bmp" ;returns true
if fchk "test.bmp"		;same result</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="fileexist"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.01</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">fileexist</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>fileexist %VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result for file check (1: exists, 0: not found)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Assigns 1 to the given variable if the file exists, 0 if not. This will also check within NSA archives.</p>
	<hr>
		<a href="#fileremove">fileremove</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="filelog"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">filelog</div>
</h2><h4>
	<a href="#category_log_global" class="WordCategory">File Access Logs/Global Variables</a>
</h4><h3>filelog</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This allows for creation of a file log.<br>
		Every single resource used by the program will be recorded in that file log as a tag.<br>
		If you specify neither this command nor <b>globalon</b>, then nscr.exe will not generate any files, and will be able to run from CD.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="fileremove"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">fileremove</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>fileremove STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Deletes the given file.</p>
	<hr>
		<a href="#fileexist">fileexist</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="flushout"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.48</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20100102</span> )
			</span>
		</span>
	</div>
	<div class="WordName">flushout</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>flushout NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Duration (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Special effect; may be graphic-intensive.<br>
		Ends with a white background, so please load a background in one of the next instructions.
	</p>
	<hr>
		<a href="#bg">bg</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="font"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.67</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">font</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>font STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the text display font.<br>
		If the text window is already displayed, the new font will only take effect the next time the window is cleared.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Changes display text font to "ＭＳ 明朝"</div>
		<pre class="ExSource">font "ＭＳ 明朝"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="for"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">for</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>for %VAR=NUM to NUM[ step NUM]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable used as counter</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Initial value for counter</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Ending value for counter</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Increment step for counter</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is essentially the same as a BASIC loop. The <b>for</b> loop starts at the first number, and then increments (or decrements) by the step value until it has gone beyond the second number (or below, in the case of a negative step). The step value is 1 by default.<br>
		<br>
		If you use commands like <b>goto</b> or <b>select</b> inside a <b>for</b> loop, this will leave the NScripter stack in an inconsistent and easily-crashable state - so please don't do that.<br>
		<br>
		All commands in the loop between the <b>FOR</b> and the <b>NEXT</b> will be executed. If you wish to prematurely break out of the loop, issue a <b>BREAK</b> command.<br>
		You can also use <b>gosub</b> commands to no ill effect within a loop; thus, it is highly recommended that you compartmentalize what is <b>inside</b> a loop from what is <b>outside</b> of it.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Looping %0 from 1 to 10, add each value of the counter to %1.</div>
		<pre class="ExSource">
for %0=1 to 10
	add %1,%0
next</pre>
	</div>
	<hr>
		<a href="#next">next</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="game"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">game</div>
</h2><h4>
	<a href="#category_startend" class="WordCategory">Game Start/End/Quit</a>
</h4><h3>game</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Ends the definition block and begins the game.</p>
	<hr>
		<a href="#_define-label">*define</a> / <a href="#_start-label">*start</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gameid"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gameid</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>';gameid' STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Name to use for the game save folder</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets a name to use for a (P)ONScripter game savedata folder, which is filed in AppData (or similar applicable directory for non-Windows operating systems).<br>
		If a <b>gameid</b> is not specified, (P)Onscripter creates a savedata folder name from a hash of the game script.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Since a <b>;mode</b> directive must be in the first line of a script, a <b>;gameid</b> directive must be in the <b>second</b> line - no exceptions! (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Sets the game folder name to "ToHeart-Extra".</div>
		<pre class="ExSource">
;gameid ToHeart-Extra</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getbtntimer"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getbtntimer</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>getbtntimer %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for elapsed time</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Gets the amount of time (in milliseconds) spent in <b>btnwait</b>. You would use this to, say, restart the button timer in its proper place after a pause initiated by the player (by right-clicking, perhaps).
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getcselnum"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getcselnum</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getcselnum %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for total number of choices</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the total number of <b>csel</b> choices.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			If you retrieve value %n with this command, be sure not to give a value greater than %n-1 as the choice index for <b>cselbtn</b>. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assigns the total number of csel choices to %0.</div>
		<pre class="ExSource">getcselnum %0</pre>
	</div>
	<hr>
		<a href="#csel">csel</a> / <a href="#_customsel-label">*customsel</a> / <a href="#getcselnum">getcselnum</a> / <a href="#cselgoto">cselgoto</a> / <a href="#getcselstr">getcselstr</a> / <a href="#selectbtnwait">selectbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getcselstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.34</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getcselstr</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getcselstr $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable for choice</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Index number of the desired choice string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Acquires a character string given as a <b>csel</b> choice.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Grabs the 0th (first) choice string provided by csel and assigns it to $0.</div>
		<pre class="ExSource">getcselstr $0,0</pre>
	</div>
	<hr>
		<a href="#csel">csel</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getcursor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getcursor</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getcursor</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -40 on up-arrow keypress, -41 on right-arrow, -42 on down-arrow, and -43 on left-arrow.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getcursorpos"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getcursorpos</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getcursorpos %VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Variable for the text-window X-coordinate of the text cursor</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Variable for the text-window Y-coordinate of the text cursor</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the text-window position of the text cursor - where a character would next be displayed.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Stores the text cursor position in (%0,%1).</div>
		<pre class="ExSource">getcursorpos %0,%1</pre>
	</div>
	<hr>
		<a href="#textgosub">textgosub</a> / <a href="#textbtnwait">textbtnwait</a> / <a href="#texec">texec</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getcursorpos2"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.92</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.92</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20100105</span> )
			</span>
		</span>
	</div>
	<div class="WordName">getcursorpos2</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getcursorpos2 %VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Variable for the top-left pixel X-coordinate of the text character</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Variable for the top-left pixel Y-coordinate of the text character</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		The same as <b>getcursorpos</b>, except that this command returns the pixel coordinates of the top-left of the last displayed text character.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Stores the top-left pixel coordinates of the last text character in (%0,%1).</div>
		<pre class="ExSource">getcursorpos2 %0,%1</pre>
	</div>
	<hr>
		<a href="#getcursorpos">getcursorpos</a> / <a href="#textgosub">textgosub</a> / <a href="#textbtnwait">textbtnwait</a> / <a href="#texec">texec</a> / <a href="#texec2">texec2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getenter"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getenter</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getenter</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -19 when the Enter key is pressed.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getfunction"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getfunction</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getfunction</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -21 to -32 for presses of keys F1 to F12.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getini"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getini</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>getini $VAR,STR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable for the registry key/value result</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">An INI filename</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">INI section name</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">INI key name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Opens an ini file and reads a variable.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getinsert"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getinsert</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getinsert</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -50 when the Insert key is pressed.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getlog"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getlog</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>getlog $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result variable for backlog string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of pages back</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the character string of the given backlog page, including newlines and ruby text data.<br>
		The second parameter gives the backlog page number, the same as provided to <b>checkpage</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets $0 to the backlog string from %5 pages back</div>
		<pre class="ExSource">getlog $0,%5</pre>
	</div>
	<hr>
		<a href="#checkpage">checkpage</a> / <a href="#logsp">logsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getlogtext"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.70</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">getlogtext</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>getlogtext $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result variable for backlog string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of pages back</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works the same as <b>getlog</b>, but intended to be used in combination with <b>strsp</b>.<br>
		Later versions of NScr (and ONScripter) have a <b>strsp</b> command that can work with <b>getlog</b> text, so this command is basically unnecessary.
	</p>
	<hr>
		<a href="#getlog">getlog</a> / <a href="#strsp">strsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getmclick"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.94</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">getmclick</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getmclick</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands, like with <b>getfunction</b>.<br>
		The wait command will return -70 if the middle mouse button is clicked.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getmouseover"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">getmouseover</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getmouseover</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Minimum button number to return mouseovers</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Maximum button number to return mouseovers</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Set this between <b>btndef</b> and <b>btnwait</b> to collect button mouseovers during the wait.<br>
		It will only exit the btnloop for mouseovers of buttons within the given range, returning the applicable button number.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This will wait and return if any of buttons 0-9 are moused over.</div>
		<pre class="ExSource">
btndef clear
getmouseover 0,9
btnwait %0</pre>
	</div>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btnwait">btnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getmousepos"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getmousepos</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getmousepos %VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">result numeric variable for mouse cursor X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">result numeric variable for mouse cursor Y-coordinate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets the given result variables to the current mouse cursor coordinates.<br>
		Unlike <b>clickpos</b>, this command can collect cursor position without first waiting for a click.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assign the current mouse cursor coordinates to %0 and %1.</div>
		<pre class="ExSource">getmousepos %0,%1</pre>
	</div>
	<hr>
		<a href="#clickpos">clickpos</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getnextline"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20100105</span> )
			</span>
		</span>
	</div>
	<div class="WordName">getnextline</div>
</h2><h4>
	<a href="#category_cursor" class="WordCategory">Cursor</a>
</h4><h3>getnextline %VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the text window X-coordinate of the following line</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the text window Y-coordinate of the following line</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the position of the start of the following line of text in the text window.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This puts the X and Y coordinates of the next line in %0 and %1.</div>
		<pre class="ExSource">getnextline %0,%1</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getpage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.20</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getpage</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getpage</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -12 on PageUp keypress and -13 on PageDown.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getinsert">getinsert</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getparam"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.40</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getparam</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getparam %VAR|$VAR|s%VAR|i%VAR[,...]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Argument storage variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Takes the values provided as parameters to a user-defined command and assigns them, in order, to the given variables. For example, given the following subroutine call/getparam code:<br>
		<span class="Indent"></span><b>defsub usercmd1</b><br>
		<span class="Indent"></span>. . .<br>
		<span class="Indent"></span><b>usercmd1 %14,$15,2,"blat"</b><br>
		<span class="Indent"></span>. . .<br>
		<span class="Indent"></span><b>*usercmd1</b><br>
		<span class="Indent"></span><b>getparam %0,$0,%1,$1</b><br>
		After the <b>getparam</b> command, %0 will contain the numeric value of %14, $0 the string value of $15, %1 the numeric value 2, and $1 the numeric value "blat".<br>
		<br>
		The <b>s%VAR</b> and <b>i%VAR</b> argument types allow for passing variables by reference - s%VAR for a string variable, i%VAR for a numeric variable.<br>
		For example, in this code:<br>
		<span class="Indent"></span><b>defsub usercmd2</b><br>
		<span class="Indent"></span>. . .<br>
		<span class="Indent"></span><b>usercmd2 %14,$15</b><br>
		<span class="Indent"></span>; same result as <b>inc %14 : add $15,"/"</b><br>
		<span class="Indent"></span>. . .<br>
		<span class="Indent"></span><b>*usercmd2</b><br>
		<span class="Indent"></span><b>getparam i%0,s%1</b><br>
		<span class="Indent"></span><b>inc %%0 : add $%1,"/" : return</b><br>
		After the <b>getparam</b> command, %0 will contain the numeric value <b>14</b> and %1 the numeric value <b>15</b> - the reference numbers of the provided variables. The variables are then accessed or modified by referring to <b>%%0</b> and <b>$%1</b>.<br>
		<br>
		Finally, label names may be passed and accessed as string values, as follows:<br>
		<span class="Indent"></span><b>defsub usergoto</b><br>
		<span class="Indent"></span>. . .<br>
		<span class="Indent"></span><b>usergoto *alabel</b><br>
		<span class="Indent"></span>. . .<br>
		<span class="Indent"></span><b>*usergoto</b><br>
		<span class="Indent"></span><b>getparam $0</b><br>
		<span class="Indent"></span><b>goto $0</b><br>
		<span class="Indent"></span>; <b>goto "*alabel"</b> same as <b>goto *alabel</b>
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Since NScripter treats all variables as global, it would be best to designate a set of variable numbers for subroutines only, and not use them within the main program, in order to keep "local" and "global" variables separate. For example, use %0-%49 as main program variables, and %50-%99 only within <b>defsub</b> routines.
		</div>
	</div>
	<hr>
		<a href="#defsub">defsub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getreg"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">getreg</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>getreg $VAR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable for the registry key/value result</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">A registry key</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">A registry variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Opens the Windows registry and queries for a variable.<br>
		Will search only in HKEY_CURRENT_USER.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment"></div>
		<pre class="ExSource">getreg $0,"software\leaf\toheart","datadir"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getret"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getret</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>getret %VAR|$VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Variable to hold either a numeric or string value returned by a DLL</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves a value returned from a DLL call via <b>exec_dll</b>. Numeric and string values may be collected separately.<br>
		This command may also be used to retrieve a value returned by <b>textfield</b> or a call to <b>layermessage</b>.
	</p>
	<hr>
		<a href="#exec_dll">exec_dll</a> / <a href="#textfield">textfield</a> / <a href="#layermessage">layermessage</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getsavestr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.60</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">getsavestr</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>getsavestr $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result string variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the character string that was stored with a particular save number using <b>savegame2</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Gets the string stored with Save Game 12 by savegame2 and assigns it to $1.</div>
		<pre class="ExSource">getsavestr $1,12</pre>
	</div>
	<hr>
		<a href="#savegame2">savegame2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getscreenshot"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getscreenshot</div>
</h2><h4>
	<a href="#category_screenshot" class="WordCategory">Screenshot</a>
</h4><h3>getscreenshot NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Screenshot image width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Screenshot image height</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Collects a screenshot.	This only stores the image in memory - you will need to call <b>savescreenshot</b> to save it to a file.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Grabs a screenshot of size 160x120.</div>
		<pre class="ExSource">getscreenshot 160,120</pre>
	</div>
	<hr>
		<a href="#savescreenshot">savescreenshot</a> / <a href="#savescreenshot2">savescreenshot2</a> / <a href="#deletescreenshot">deletescreenshot</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getskipoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091230</span> )
			</span>
		</span>
	</div>
	<div class="WordName">getskipoff</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>getskipoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Set this between <b>btndef</b> and <b>textbtnwait</b> to collect skipoff keystrokes during the wait.
		<b>textbtnwait</b> will return -60 if skip mode off is requested, -61 if auto mode off.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This will wait for user input and call *clearskipicon if skip mode off was requested.</div>
		<pre class="ExSource">
btndef clear
getskipoff
textbtnwait %0
if %0=-60 gosub *clearskipicon</pre>
	</div>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#textbtnwait">textbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getspmode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.61</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getspmode</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>getspmode %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This returns 1 if the given sprite is displayed, 0 if the sprite is hidden.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %2 to 1 if Sprite 10 is displayed, 0 if it is hidden.</div>
		<pre class="ExSource">getspmode %2,10</pre>
	</div>
	<hr>
		<a href="#lsp">lsp</a> / <a href="#lsph">lsph</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getspsize"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.53</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getspsize</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>getspsize NUM,%VAR,%VAR[,%VAR]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable for sprite width</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable for sprite height</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Optional result numeric variable for sprite cell</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the size of the given sprite.<br>
		This will also return the sprite cell number if the optional variable is provided.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The optional cell variable argument was added in ver2.54.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Grabs the size of Sprite 0 and assigns %0 its width, %1 its height, and %2 its current cell.</div>
		<pre class="ExSource">getspsize 0,%0,%1,%2</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gettab"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gettab</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>gettab</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -20 when the Tab key is pressed.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <a href="#getzxc">getzxc</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gettag"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.46</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gettag</div>
</h2><h4>
	<a href="#category_tag" class="WordCategory">Pretext Tags</a>
</h4><h3>gettag $VAR|%VAR[,...]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric or string variable to receive a tag data element</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This command is called from within a <b>pretextgosub</b> routine in order to extract data from a pretext tag.<br>
		It is not necessary to use <b>split</b> - the <b>gettag</b> command itself will do the job, delimiting on "/".<br>
		If there is no tag data for a variable (no tag was provided, or there are more parameters to <b>gettag</b> than elements in the tag), then the variable in question is given a null value: "" for strings, 0 for numerics.<br>
		<br>
		If a tag <b>[太郎/0001.wav]</b> is processed via the command <b>gettag $0,$1</b>, then as a result $0 will be "太郎" and $1 will be "0001.wav".<br>
		If <b>gettag $0,$1</b> is called but no tag was provided, then as a result both $0 and $1 will be "".<br>
		<br>
		Pretext tag processing is especially intended for handling names and voice files for dialog text.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Processes a pretext tag, assigning the first two elements to $0 and $1.</div>
		<pre class="ExSource">gettag $0,$1</pre>
	</div>
	<hr>
		<a href="#_squarebrackets">[]</a> / <a href="#pretextgosub">pretextgosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gettaglog"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.72</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gettaglog</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>gettaglog $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result variable for backlog string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of pages back</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the last pretext tag of the given backlog page.<br>
		This can be convenient for custom backlogs in scripts that provide character name and voice file via tags.<br>
		<br>
		Returns the empty string if no pretext tag was available.<br>
		Note that this command does not split the tag and populate variables automatically, like <b>gettag</b> does; such functionality may be added later.
	</p>
	<hr>
		<a href="#gettag">gettag</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gettext"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gettext</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>gettext VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable to hold text window contents</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the text currently displayed in the text window.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Retrieves the contents of the text window and stores in $0.</div>
		<pre class="ExSource">gettext $0</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gettextbtnstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.65</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">gettextbtnstr</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>gettextbtnstr $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result string variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Textbutton number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the text of the textbutton with the given number.<br>
		Returns a value of "" if the textbutton doesn't exist.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Gets the text of textbutton number 12 and assigns it to $0.</div>
		<pre class="ExSource">gettextbtnstr $0,12</pre>
	</div>
	<hr>
		<a href="#_anglebrackets">&lt;&gt;</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gettimer"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gettimer</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>gettimer %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Current value of the internal timer (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Retrieves the current state of the internal timer.<br>
		This returns a value in milliseconds corresponding to the amount of time that has elapsed since <b>resettimer</b> was last called.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getversion"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getversion</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>getversion %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the current NScr version</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Gets the current version string, as a 3-digit number: for instance. version 1.90 would be returned as 190.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getwindowsize"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.54</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">getwindowsize</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>getwindowsize %VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for window width</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for window height</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the size of the program window (the drawing area, not including the menubar). By default, the return values are 640 and 480.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assign the screen window width to %0 and height to %1.</div>
		<pre class="ExSource">getwindowsize %0,%1</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="getzxc"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">getzxc</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>getzxc</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		The wait command will return -51 on Z keypress, -52 on X, and -53 on C.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="globalon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">globalon</div>
</h2><h4>
	<a href="#category_log_global" class="WordCategory">File Access Logs/Global Variables</a>
</h4><h3>globalon</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Turns on the use of global variables. If you enable this or <b>filelog</b>, nscr.exe cannot be run from write-protected media.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="gosub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">gosub</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>gosub LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Jump destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Jumps to and begins execution at the given label name.<br>
		Jumps back to the command directly after the original <b>gosub</b> when a <b>return</b> command is encountered.
	</p>
	<hr>
		<a href="#return">return</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="goto"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">goto</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>goto LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Jump destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Jump to the given label name. (Can cause spaghetti code.)</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="h_breakstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">h_breakstr</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>h_breakstr STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Break characters</span>
	<div class="Space"></div>
</div><h3>h_breakstr basic</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword for the standard linebreaking characters</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies characters that allow linebreaks. Equivalent to the <b>pbreakstr</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Sets space, comma and hyphen as break characters.</div>
		<pre class="ExSource">h_breakstr ^ ,-^</pre>
	</div>
	<hr>
		<a href="#pbreakstr">pbreakstr</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="h_fontstyle"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">h_fontstyle</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>h_fontstyle STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">font style tag</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets the default text styling. Equivalent to the command <b>pfontstyle</b>.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Displays text in italic display font (slot 5).</div>
		<pre class="ExSource">
h_fontstyle ^si^
^Here is a page of italic text.\
^And it's still italic!\
h_fontstyle ^d^ ;back to regular style</pre>
	</div>
	<hr>
		<a href="#pfontstyle">pfontstyle</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="h_indentstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">h_indentstr</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>h_indentstr STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Indent characters</span>
	<div class="Space"></div>
</div><h3>h_indentstr basic</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword for the standard indenting characters</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies characters that will set an indent. Equivalent to the <b>pindentstr</b> command.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Sets quote marks (undirected and left) as indenting characters.</div>
		<pre class="ExSource">h_indentstr ^"'‘“^</pre>
	</div>
	<hr>
		<a href="#pindentstr">pindentstr</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="h_ligate"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( PONS )</span>
		</span>
	</div>
	<div class="WordName">h_ligate</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>h_ligate STR,NUM|STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Shortcut matching text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Unicode codepoint for shortcut result (if numeric)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">(Unicode) char for shortcut result (if string)</span>
	<div class="Space"></div>
</div><h3>h_ligate STR,remove</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Shortcut matching text</span>
	<div class="Space"></div>
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword to remove the defined matching shortcut</span>
	<div class="Space"></div>
</div><h3>h_ligate {none|default|basic|punctuation|f_ligatures|specials|all}</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword for a preset shortcut set</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Adds or removes shortcut sequences. Equivalent to the command <b>pligate</b>.
	</p>
	<hr>
		<a href="#pligate">pligate</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="h_mapfont"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20061124</span> )
			</span>
		</span>
	</div>
	<div class="WordName">h_mapfont</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>h_mapfont NUM,STR[,STR]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Font slot (0-7)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font filename</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font metrics file (Type 1 fonts only)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Maps a font file to the given font slot. Equivalent to the command <b>pmapfont</b>.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Maps font slot 0 to "myprettyfont.ttf".</div>
		<pre class="ExSource">h_mapfont 0,"myprettyfont.ttf"</pre>
	</div>
	<hr>
		<a href="#pmapfont">pmapfont</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="h_rendering"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20061124</span> )
			</span>
		</span>
	</div>
	<div class="WordName">h_rendering</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>h_rendering {none|full|light},{integer|float}[,{light|normal}]</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Hinting (either none, full, or light)</span>
	<div class="Space"></div>
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Positioning (either integer or float)</span>
	<div class="Space"></div>
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Optional Freetype rendering mode (light or normal)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Configures the Freetype text rendering mode. Equivalent to the command <b>prendering</b>.
	</p>
	<hr>
		<a href="#prendering">prendering</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="humanorder"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">humanorder</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>humanorder STR,EFFECT</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Standing image positions in priority order, e.g. "lcr"</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Transition effect to use during image priority change</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Specifies the overlapping priority for standing images.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the standing picture priorities to display right atop center atop left.</div>
		<pre class="ExSource">humanorder "rcl",1</pre>
	</div>
	<hr>
		<a href="#humanz">humanz</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="humanpos"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091010</span> )
			</span>
		</span>
	</div>
	<div class="WordName">humanpos</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>humanpos NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Standard X-coordinate for "l" standing image position</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Standard X-coordinate for "c" standing image position</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Standard X-coordinate for "r" standing image position</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies the standard x-coordinates for standing image positions "l", "c", and "r".<br>
		The center vertical axis of a standing image will be matched to the coordinates given by this command.<br>
		The default values are 160, 320, and 480.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This command was allowed in the program block since ver2.92.</div>
	</div>
	<hr>
		<a href="#ld">ld</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="humanz"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">humanz</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>humanz NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number right above the standing image layer</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designates the image priority when sprites and standing pictures overlap (the z-order).<br>
		The sprite of the given number will be drawn immediately above the standing images.<br>
		<br>
		The default value is 25.
	</p>
	<hr>
		<a href="#ld">ld</a> / <a href="#windowback">windowback</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="if"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">if</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>if CONDITION[{&amp;&amp;,&amp;} CONDITION[...]] SENTENCE</h3><div class="Arguments">
	<span class="ArgType">CONDITION</span>
	<span class="ArgMeaning">Relative operation, check instruction, or some other truth-value returning expression</span>
	<div class="Space"></div>
	<span class="ArgType">SENTENCE</span>
	<span class="ArgMeaning">Command(s) to execute if the condition was True</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		The commands following the if statement are executed if the conditional statement(s) evaluate true; if you want branch control in which a command executes if a conditional statement is false, use <b>notif</b>.<br>
		The conditions compare numerical values, else you can employ <b>fchk</b>.<br>
		<b>&amp;</b> and <b>&amp;&amp;</b> are logical 'ands', and are equivalent to each another.<br>
		<br>
		<span class="Indent"></span><b>Conditions:</b><br>
		<span class="Indent"></span>(numerical variable) {&gt;,&lt;,=,&gt;=,&lt;=,==,!=,&lt;&gt;} (numeric variable)<br>
		<span class="Indent"></span>- or -<br>
		<span class="Indent"></span><b>fchk</b> (character string)<br>
		<br>
		<span class="Indent"></span><b>&lt;</b>, <b>&gt;</b>, <b>=</b>, <b>&gt;=</b>, and <b>&lt;=</b> should already be known to you.<br>
		<span class="Indent"></span><b>==</b> and <b>=</b> are identical, as are <b>!=</b> and <b>&lt;&gt;</b>.<br>
		<span class="Indent"></span><b>fchk</b> returns true when the image whose name corresponds to the character string is being used.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">If %0 equals 1, do a 1/2 second horizontal screen shake.</div>
		<pre class="ExSource">if %0=1 quakex 2,500 ;basic conditional form</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">End the program if %0 equals 1 and %2 equals 5.</div>
		<pre class="ExSource">if %0=1 &amp;&amp; %2=5 end ;more complex form - both conditionals must be true</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">If %0 equals 2, assign 1 to %1 and then skip the next 2 lines.</div>
		<pre class="ExSource">if %0=2 mov %1,1:skip 2 ;execute multiple commands sep. by ':'</pre>
	</div>
	<hr>
		<a href="#notif">notif</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="inc"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">inc</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>inc %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable to increment</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Increments the value of the numerical variable by one.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="indent"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.46</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">indent</div>
</h2><h4>
	<a href="#category_tag" class="WordCategory">Pretext Tags</a>
</h4><h3>indent NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">The number of (fullwidth) characters to indent a continuing line</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		When continuing a line after a line break, it will indent by the amount specified via this command.<br>
		For example, a <b>pretextgosub</b> routine could use this command to add indenting for a line of dialog, but then set the indent level to 0 for regular text.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Indent continuing lines by 2 (fullwidth) spaces</div>
		<pre class="ExSource">indent 2</pre>
	</div>
	<hr>
		<a href="#pretextgosub">pretextgosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="input"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">input</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>input $VAR,STR,STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Input result string variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to display</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Default input string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Maximum input length</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Force double-byte input (0: allow half-width, 1: full-width only)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Presents a text input box, much like <b>inputstr</b>; however, <b>input</b> must have a default character string.<br>
		Depending on whether the double-byte flag is 0 or 1, you can force your user to input 2-byte characters or not.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">(P)ONScripter "supports" this command by assigning the default string to the result variable.</div>
	</div>
	<hr>
		<a href="#inputstr">inputstr</a> / <a href="#inputnum">inputnum</a> / <a href="#textfield">textfield</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="inputnum"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">inputnum</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>inputstr %VAR,STR[,NUM,NUM,NUM,NUM]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Input result numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to display</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window width (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window height (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Input area width (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Input area height (optional)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates an input dialog that assigns the user's input to the given numeric variable.<br>
		The character string serves as the dialog message text.<br>
		The last 4 arguments may be omitted; in order they are (window size x), (window size y), (text input window size x), (text input window size y).
	</p>
	<hr>
		<a href="#input">input</a> / <a href="#inputstr">inputstr</a> / <a href="#textfield">textfield</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="inputstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">inputstr</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>inputstr $VAR,STR,NUM,NUM[,NUM,NUM,NUM,NUM]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Input result string variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to display</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Maximum input length</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Force double-byte input (0: allow half-width, 1: full-width only)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window width (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window height (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Input area width (optional)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Input area height (optional)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates an input dialog that captures all input to the character variable.<br>
		The character string serves as the dialog message text.<br>
		The first number is the max input length, the second (0 or 1) determines whether the user is forced to enter 2-byte characters or not.<br>
		The last 4 arguments may be omitted; in order they are (window size x), (window size y), (text input window size x), (text input window size y).
	</p>
	<hr>
		<a href="#input">input</a> / <a href="#inputnum">inputnum</a> / <a href="#textfield">textfield</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="insertmenu"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.98</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">insertmenu</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>insertmenu STR,NAME[,NUM]</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string displayed for menu item</span>
	<div class="Space"></div>
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Menu function code</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Submenu level (optional)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Adds a menubar item. It always adds at the head position.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates a full menu, arranged differently from the default.</div>
		<pre class="ExSource">
insertmenu "終了",END
insertmenu "バージョン情報",VERSION
insertmenu "次の選択肢に進む",SKIP
insertmenu "オートモード",AUTO
insertmenu "環境設定",SUB
;SUB indicates the top of a submenu, which will contain following items of deeper level.
;This one contains everything that follows.
insertmenu "フォント",FONT,1
insertmenu "ウェーブ",SUB,1
insertmenu "ＯＮ",WAVEON,2
insertmenu "ＯＦＦ",WAVEOFF,2
insertmenu "ボリューム",DWAVEVOLUME,2
insertmenu "テキスト",SUB,1
insertmenu "遅い",TEXTSLOW,2
insertmenu "普通",TEXTMIDDLE,2
insertmenu "速い",TEXTFAST,2
insertmenu "画面",SUB,1
insertmenu "フルスクリーン",FULL,2
insertmenu "ウィンドウ",WINDOW,2
insertmenu "ＣＤ－ＤＡ",SUB,1
insertmenu "ＯＮ",CDON,2
insertmenu "ＯＦＦ",CDOFF,2
insertmenu "クリック設定",SUB,1
insertmenu "普通",CLICKDEF,2
insertmenu "ページごと",CLICKPAGE,2</pre>
	</div>
	<hr>
		<a href="#killmenu">killmenu</a> / <a href="#resetmenu">resetmenu</a> / <a href="#deletemenu">deletemenu</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="intlimit"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">intlimit</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>intlimit NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric variable number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Minimum allowed value</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Maximum allowed value</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Restricts the value of an numerical variable. If it exceeds the set maximum, it becomes reset to the set maximum; if it goes below the set minimum, it resets to the set minimum.<br>
		In order, the numbers in the command are: numerical variable number, min value, max value.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This sets the allowed range for numeric variable 0 to be 10 to 20.</div>
		<pre class="ExSource">intlimit 0,10,20</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="isdown"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">isdown</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>isdown %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">result numeric variable (1: pressed, 0: not pressed)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets the result variable based on whether the left mouse button is pressed down.<br>
		It returns 1 if pressed, 0 if not pressed.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This prints a line of "０"s while the left mouse button is pressed, moving to the next line when the button is released.	It exits on right-click.</div>
		<pre class="ExSource">
*waitloop
btnwait %0
if %0=0 goto *onlclick
end
*onlclick
isdown %1
if %1=1 puttext "０/":goto *onlclick
puttext ""
goto *waitloop</pre>
	</div>
	<hr>
		<a href="#btndown">btndown</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="isfull"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">isfull</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>isfull %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable (0: windowed, 1: full-screen)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the current full-screen status (full or windowed).</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This checks whether the program is in fullscreen mode - if not, it enters fullscreen mode, otherwise it goes to windowed mode.</div>
		<pre class="ExSource">
isfull %0
if %0==0 menu_full
notif %0==0 menu_window</pre>
	</div>
	<hr>
		<a href="#menu_full">menu_full</a> / <a href="#menu_window">menu_window</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="ispage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">ispage</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>ispage %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Return numeric variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Within a <b>textgosub</b> routine, this will set the return variable to 1 if the current clickwait is for a new page, 0 if not.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Retrieves the clickwait type and assigns it to %0.</div>
		<pre class="ExSource">ispage %0</pre>
	</div>
	<hr>
		<a href="#textgosub">textgosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="isskip"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.20</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">isskip</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>isskip %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Return numeric variable (0: no skip, 1: skip mode, 2: auto mode)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the current skip mode setting. Returns 0 if no skip, 1 if skip to next choice mode, and 2 if auto mode.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">If currently in kidoku (skip to unread) mode, this will return 0 at unread sentences. (by senzogawa)</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">ONScripter-EN will return 4 if page-at-once mode is set. (by Mion)</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="itoa"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">itoa</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>itoa $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String result variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to convert</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Converts a number into a (half-width digit) character string. Similar to the itoa function in C.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Populates $0 with "120", and $1 with the string conversion of %2.</div>
		<pre class="ExSource">
itoa $0,120
itoa $1,%2</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="itoa2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">itoa2</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>itoa $VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable for the fullwidth result</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to convert</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is the same as <b>itoa</b>, except that it converts a number into a full-width digit character string, for more convenient Japanese text display.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">The numeric value of %4 is converted to a fullwidth string, which is then assigned to $0.</div>
		<pre class="ExSource">itoa2 $0,%4</pre>
	</div>
	<hr>
		<a href="#itoa">itoa</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="jumpb"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">jumpb</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>jumpb</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Return to the last ~ symbol.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Be careful about "~" chars in comments and such around this command. (by senzogawa)</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="jumpf"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">jumpf</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>jumpf</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Jumps to the next appearance of a ~ symbol. Use this when it's bothersome to use a proper label. However, as you can't really do deeply nested control with this kind of command, try not to overuse it.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Be careful about "~" chars in comments and such around this command. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment"></div>
		<pre class="ExSource">
jumpf
;I am a line that gets skipped.
~
;I am a line that isn't skipped.</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="kidokumode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">kidokumode</div>
</h2><h4>
	<a href="#category_kidokuskip" class="WordCategory">Skip Mode</a>
</h4><h3>kidokumode NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Mode setting (0: regular skip, 1: skip to unread)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Toggles between regular kidoku skip (stops at first unread text) and forced "skip to next choice" mode.</p>
	<hr>
		<a href="#kidokuskip">kidokuskip</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="kidokuskip"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">kidokuskip</div>
</h2><h4>
	<a href="#category_kidokuskip" class="WordCategory">Skip Mode</a>
</h4><h3>kidokuskip</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		If you use this command, you can enter "skip to next choice" mode. The script will keep track of previously-read text, so that whenever you encounter unread text, Skip Mode will automatically terminate.<br>
		Kidoku (read text) data is stored in the file "kidoku.dat".
	</p>
	<hr>
		<a href="#kidokumode">kidokumode</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="killmenu"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">killmenu</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>killmenu NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Position of erased menu item</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This deletes menu items, counted from left to right.<br>
		0 is the leftmost item number, with each item to the right incrementing in number.<br>
		Once you have deleted a menu item, the numbers for all menu items after it shift down one, so please be careful.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			For some reason, menu item "CD-DA" always starts with number 7.<br>
			Similarly, menu items "Version Info" and "Exit" start as numbers 8 and 9, respectively.
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="kinsoku"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.73</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">kinsoku</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>kinsoku {on,off}</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">on: use kinsoku rules; off: ignore kinsoku rules</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		<b>kinsoku on</b> causes "kinsoku" (forbidden start/end character) rules to be enforced, while <b>kinsoku off</b> causes those rules to be ignored.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This works with both regular text display and the <b>strsp</b> command. (by senzogawa)
		</div>
	</div>
	<hr>
		<a href="#strsp">strsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="labelexist"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.20</span> )
			</span>
		</span>
	</div>
	<div class="WordName">labelexist</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>labelexist %VAR,LABEL</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result for label check (1: exists, 0: not found)</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Label to check for</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Assigns 1 to the given variable if the label exists, 0 if not.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Checks if "*message" routine exists, and calls it if so.</div>
		<pre class="ExSource">
labelexist %0,*message
if %0==1 gosub *message</pre>
	</div>
	<hr>
		<a href="#goto">goto</a> / <a href="#gosub">gosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="labellog"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">labellog</div>
</h2><h4>
	<a href="#category_log_global" class="WordCategory">File Access Logs/Global Variables</a>
</h4><h3>labellog</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This command behaves somewhat like <b>filelog</b>, except in this case it keeps a record of labels.<br>
		Whenever a <b>goto</b>, <b>gosub</b> or similar command is called, a record of which label was called will be stored if <b>labellog</b> was specified.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="language"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( ONScr-EN<span class="EngineVersion">20080823</span> )
			</span>
		</span>
	</div>
	<div class="WordName">language</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>language {english/japanese}</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">english: prefer English, japanese: prefer Japanese</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This sets the preferred text display language in ONScripter-EN, more-or-less replacing the FORCE_1BYTE_CHAR compilation option.<br>
		The right-click menu will use the preferred language for display messages, and text display will take preferred language, kinsoku settings, and whether a chunk of text contains single-byte and/or double-byte characters into account when performing linebreaks.<br>
		This command can be used within either the define or program block, and may be set by default from the command line or depending on the executable filename (i.e. "onscripter-en.exe" is assumed to prefer English).<br>
		<br>
		Note that ENABLE_1BYTE_CHAR must be set at ONScripter compile time to be able to use <b>language english</b>.
	</p>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Sets preferred language to Japanese.</div>
		<pre class="ExSource">language japanese</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="layermessage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20090411</span> )
			</span>
		</span>
	</div>
	<div class="WordName">layermessage</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>setlayer NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Layer number (defined using setlayer)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to send to the layer</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		An arbitrary character string is sent to the specified layer.<br>
		This command can be useful for achieving various effects within a layer.<br>
		To use this command, a layer plugin should export a function with this declaration:<br>
		<span class="Indent"></span>BOOL Message(char *message, int *returnint, char *returnstr);
	</p>
	<hr>
		<a href="#setlayer">setlayer</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lchk"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lchk</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>lchk LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Label to confirm</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Like <b>fchk</b>, this command is used in <b>if</b> statement conditionals. It checks to see whether the given label has been used/accessed.<br>
		Any of the following are allowed syntax:<br>
		<span class="Indent"></span>lchk *test<br>
		<span class="Indent"></span>lchk "*test"<br>
		<span class="Indent"></span>lchk $0
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="ld"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">ld</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>ld {l,c,r},STR,EFFECT</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">standing pic position (l: left, c: center, r: right)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect for displaying standing picture</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads a standing picture. Use l for left, r for right, c for center.<br>
		The character string is the image filename; the image tag is automatically generated as well.
	</p>
	<hr>
		<a href="#cl">cl</a> / <a href="#effect">effect</a> / <a href="#humanz">humanz</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="len"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">len</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>len %VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Length result variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to measure</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Finds the length of the given character string.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %0 to the length of $0</div>
		<pre class="ExSource">len %0,$0</pre>
	</div>
	<hr>
		<a href="#mid">mid</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="linepage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">linepage</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>linepage</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Setting this causes new-page clickwaits to occur at the end of each line, even if you do not specify it using '<b>\</b>'.<br>
		This means that you never have to manually specify a line/page feed.<br>
		Please take care if you decide to use <b>@</b>, <b>\</b>, or <b>clickstr</b> along with this command.
	</p>
	<hr>
		<a href="#_atsign">@</a> / <a href="#_backslash">\</a> / <a href="#clickstr">clickstr</a> / <a href="#_underscore">_</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="linkcolor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.65</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">linkcolor</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>linkcolor COLOR,COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Textbutton standard color</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Textbutton mouseover color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets the button colors for textbuttons.<br>
		The default colors are yellow and cyan.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the standard textbutton color to #FFFF88 and the mouseover color to #88FF88.</div>
		<pre class="ExSource">linkcolor #FFFF88,#88FF88</pre>
	</div>
	<hr>
		<a href="#_anglebrackets">&lt;&gt;</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="loadgame"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">loadgame</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>loadgame NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads the save data corresponding to the given save number. This does not prompt for confirmation, so be careful.<br>
		This command gives no error indication if savefile cannot be loaded, and simply proceeds to the next command without stopping.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="loadgosub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.40</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">loadgosub</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>loadgosub LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Subroutine to call upon game load</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies a routine to call immediately after a game is loaded and its save state has been restored.<br>
		Please take care when scripting to be sure that all saveable points will work properly when restored with this <b>loadgosub</b> routine.<br>
		This command was created especially to handle games that use plugins for music reproduction.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This command is necessary in NScr if a plugin is being used for music playback.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Specifies that the script should call *loadlb whenever a game is loaded.</div>
		<pre class="ExSource">loadgosub *loadlb</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="localestring"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20091013</span> )
			</span>
		</span>
	</div>
	<div class="WordName">localestring</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>localestring {message_reset_confirm|message_end_confirm|message_yes|message_no|message_empty|message_space} STR</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Locale string identifier</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Locale string</span>
	<div class="Space"></div>
</div><h3>localestring {days|months|am_pm|digits} STR,...</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Locale string list identifier</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Locale string list item(s)</span>
	<div class="Space"></div>
</div><h3>localestring {message_save_label|message_save_exist|message_save_confirm|message_load_confirm} STR</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Save/load related locale string identifier</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Save/load related locale string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes a string or set of strings related to the default right-click menu.<br>
		There are three separate types of localestring commands: standard dialog items, localization lists, and processed dialog items.<br>
		<br>
		<b>1) Standard dialog items</b> - localestrings meant to be displayed exactly as provided, except for parsing any <b>~</b> formatting tags.<br>
		<span class="Indent"></span><b>message_reset_confirm</b> (default: <b>"Return to Title Menu?"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- confirmation message after requesting a game reset<br>
		<span class="Indent"></span><b>message_end_confirm</b> (default: <b>"Quit?"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- confirmation message after requesting to exit the game<br>
		<span class="Indent"></span><b>message_yes</b> (default: <b>"Yes"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- affirmative response to confirmation message<br>
		<span class="Indent"></span><b>message_no</b> (default: <b>"No"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- negative response to confirmation message<br>
		<span class="Indent"></span><b>message_space</b> (default: <b>" "</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- used for displaying spaces in processed items<br>
		<span class="Indent"></span><b>message_empty</b> (default: <b>"-"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- used for filling in unused slots in the Save/Load menu<br>
		<br>
		<b>2) Localization lists</b> - sequences of localestrings related to date, time, and numbers, that are used when filling in processed dialog items. Items of a sequence are <b>not</b> required to be the same length.<br>
		<span class="Indent"></span><b>days</b> (default: <b>"Sun","Mon","Tue","Wed","Thu","Fri","Sat"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- days of the week, starting with Sunday; must be exactly 7 comma-separated strings<br>
		<span class="Indent"></span><b>months</b> (default: <b>"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- months of the calendar year, starting with January; must be exactly 12 comma-separated strings<br>
		<span class="Indent"></span><b>am_pm</b> (default: <b>"AM","PM"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- distinguish between before-noon and after-noon times in 12-hour time systems; must be exactly 2 comma-separated strings<br>
		<span class="Indent"></span><b>digits</b> (default: <b>"0","1","2","3","4","5","6","7","8","9"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- decimal digits starting with 0; must be exactly 10 comma-separated strings<br>
		<br>
		<b>3) Processed dialog items</b> - localestrings parsed for special character sequences related to saved games and the Save/Load menu save slots.<br>
		<span class="Indent"></span><b>message_save_label</b> (default: <b>"%s%n"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- used to display the label and number of a slot in the Save/Load menu<br>
		<span class="Indent"></span><b>message_save_exist</b> (default: <b>"%b %d%i %-H:%i%M"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- used to display the date and time information of a saved game<br>
		<span class="Indent"></span><b>message_save_confirm</b> (default: <b>"Save in %s%n?"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- confirmation message for saving the current game in a particular slot of the Save/Load menu<br>
		<span class="Indent"></span><b>message_load_confirm</b> (default: <b>"Load from %s%n?"</b>)<br>
		<span class="Indent"></span><span class="Indent"></span>- confirmation message for loading a game from a particular slot of the Save/Load menu<br>
		<br>
		<b>Processed dialog character sequences</b><br>
		The syntax of character sequences parsed within save/load related items comes largely from the UNIX <b>date</b> format syntax.<br>
		<span class="Indent"></span><b>%%</b> - a literal '%'<br>
		<span class="Indent"></span><b>%s</b> - Save/Load menu savefile slot heading (set via <b>savename</b>)<br>
		<span class="Indent"></span><b>%n</b> - Savefile number<br>
		<span class="Indent"></span><b>%a</b> - day of the week, retrieved from <b>days</b> localization list<br>
		<span class="Indent"></span><b>%b</b> - month of the year, retrieved from <b>months</b> localization list<br>
		<span class="Indent"></span><b>%d</b> - date of the month ('01'-'31')<br>
		<span class="Indent"></span><b>%H</b> - hour, 24-hour system ('00'-'23')<br>
		<span class="Indent"></span><b>%I</b> - hour, 12-hour system ('01'-'12')<br>
		<span class="Indent"></span><b>%M</b> - minute ('00'-'59')<br>
		<span class="Indent"></span><b>%p</b> - AM/PM time indicator, retrieved from <b>am_pm</b> localization list<br>
		<span class="Indent"></span><b>%S</b> - second ('00'-'59')<br>
		<span class="Indent"></span><b>%Y</b> - year (full)<br>
		<span class="Indent"></span><b>%y</b> - year (last 2 digits)<br>
		<br>
		The following optional flags may follow the <b>%</b> in the previous code sequences:<br>
		<span class="Indent"></span><b>-</b> (hyphen) - do not pad<br>
		<span class="Indent"></span><b>_</b> (underscore) - pad with spaces<br>
		<span class="Indent"></span><b>0</b> (zero) - pad with zeroes<br>
		After the flag, if any, may come a decimal number specifying field width, and then an optional <b>O</b> to indicate that the locale's digits should be used. For example, <b>"%_4OH:%M"</b> will display the hour with field width 4, padded with spaces, and using locale digits: <b>"	 8:45"</b>.<br>
		<br>
		There are also two sequences used specifically within <b>message_save_exist</b> for formatting Save/Load menu slots:<br>
		<span class="Indent"></span><b>%i</b> - Indent point<br>
		<span class="Indent"></span><b>%t</b> - Tab area<br>
		<br>
		An indent point is a location within the slot text where all non-empty slots <b>must</b> line up with each other. For example, with the slot text <b>"%H:%i%M"</b>, the colons in the 'hour:minute' time will line up across the entire list of slots.<br>
		<br>
		In order to make the indent points line up, whitespace is added to the beginning of the string (or just after the last indent point in the string). If one of those points shouldn't have whitespace, the whitespace tab area can be specified with <b>%t</b>. For example, in the text <b>"%H:%i%M %t(%a)%i"</b> ('hour:minute (weekday)'), setting the tab just before the '(weekday)' prevents whitespace after the colon in the ':minute' part.<br>
		<br>
		Try the following examples of localestring settings.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Use French abbreviated months and days of the week.</div>
		<pre class="ExSource">
localestring months "janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."
localestring days "Dim","Lun","Mar","Mer","Jeu","Ven","Sam"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Use fullwidth Japanese digits and space.</div>
		<pre class="ExSource">
localestring digits "０","１","２","３","４","５","６","７","８","９"
localestring message_space "　"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Use Russian confirmation messages and responses.</div>
		<pre class="ExSource">
localestring message_save_confirm "Сохранить %s%n?"
localestring message_load_confirm "Загрузить %s%n?"
localestring message_reset_confirm "Выйти в главное меню?"
localestring message_yes "Да"
localestring message_no "Нет"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Display savefile slot with the default format.</div>
		<pre class="ExSource">
localestring message_save_exist "%b %d%i %_H:%i%M"
;e.g. "Feb 06	0:45"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Other savefile slot formats.</div>
		<pre class="ExSource">
localestring message_save_exist "%Y/%m/%d	%H:%M"
;e.g. "2008/02/06	00:45"
localestring message_save_exist "%m/%d/%Y %i%I:%M %i%p"
;e.g. "02/06/2008	 12:45	AM"
localestring message_save_exist "%a, %b %d, %I:%M %p"
;e.g. "Wed, Feb 6, 12:45 AM"</pre>
	</div>
	<hr>
		<a href="#savename">savename</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="locate"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">locate</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>locate NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Horizontal position (in full-width chars)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Vertical position (in chars)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the (absolute) position of text insertion within the text window.<br>
		Note that the position values are in text metrics, not pixels.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="logsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">logsp</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>logsp NUM,STR,NUM,NUM[,COLOR[,COLOR[,...]]]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text string (provided by getlog)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Log Text color (default: #FFFFFF)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Log Text sprite additional cell color (optional)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a sprite from backlog text retrieved via <b>getlog</b>, positioned at the given coordinates.<br>
		If no color is specified, the sprite text will be white (#FFFFFF).	If only one color is specified, then the sprite will have just one cell - provide additional colors if you need more cells, like for use as a button.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates Sprite 8 from backlog text in $0, displayed at (60,90)</div>
		<pre class="ExSource">logsp 8,$0,60,90</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates Sprite 8 from backlog text in $0, displayed at (60,90), with color #FFFF88</div>
		<pre class="ExSource">logsp 8,$0,60,90,#FFFF88</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates Sprite 8 from backlog text in $0, displayed at (60,90), with Cell 0 of color #888888 and Cell 1 of color #FFFF88</div>
		<pre class="ExSource">logsp 8,$0,60,90,#888888,#FFFF88</pre>
	</div>
	<hr>
		<a href="#getlog">getlog</a> / <a href="#logsp2">logsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="logsp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">logsp2</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>logsp2 NUM,STR,NUM,NUM,NUM,NUM,NUM,NUM[,COLOR[,COLOR[,...]]]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text string (provided by getlog)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Log Text color (default: #FFFFFF)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Log Text sprite additional cell color (optional)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Same as <b>logsp</b>, but allows specifying the text character size.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates Sprite 2 from backlog text in $0 with fullwidth char size 17x17, no horizontal spacing, and 1 pixel vertical spacing, displayed at (150,20)</div>
		<pre class="ExSource">logsp2 2,$0,150,20,17,17,0,1</pre>
	</div>
	<hr>
		<a href="#getlog">getlog</a> / <a href="#logsp">logsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbackbutton"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lookbackbutton</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbackbutton STR,STR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Page-up active button image</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Page-up inactive button image</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Page-down active button image</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Page-down inactive button image</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads buttons for use in Log Mode.<br>
		By default, these are "uoncur.bmp","uoffcur.bmp","doncur.bmp","doffcur.bmp".<br>
		The images must be of the same size or else this command will fail.<br>
		Log mode buttons cannot be animated.<br>
		The button to enter log mode is located at the upper right of the text window. Its position cannot be changed once set, so please make sure you set it right the first time around.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbackcolor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lookbackcolor</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbackcolor COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Log Mode text color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets the text color for Log Mode.<br>
		The color is an #rrggbb hex value, like that used in HTML.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbackflush"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lookbackflush</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbackflush</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Flushes the Log Mode buffer.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbackoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">lookbackoff</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbackon</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Stops collecting Log Mode data; data collection can be restarted with <b>lookbackon</b>.
	</p>
	<hr>
		<a href="#lookbackon">lookbackon</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbackon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">lookbackon</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbackon</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Turns on accumulation of Log Mode data; use this to return regular log buffering after turning it off with <b>lookbackoff</b>.
	</p>
	<hr>
		<a href="#lookbackoff">lookbackoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbacksp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lookbacksp</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbacksp NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">PageUp button sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">PageDown button sprite number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Uses the given sprites as lookback buttons instead of the defaults.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Uses Sprites 2 and 3 as the Log Mode Pageup and Pagedown buttons.</div>
		<pre class="ExSource">lookbacksp 2,3</pre>
	</div>
	<hr>
		<a href="#lookbackbutton">lookbackbutton</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lookbackvoice"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lookbackvoice</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>lookbackvoice STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Paging sound filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Designates a WAV file to play back when the pageup/pagedown button is clicked in Log Mode.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="loopbgm"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">loopbgm</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>loopbgm STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Intro music filename</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Looped music filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Plays the first music file, then once it's finished, loops the second file until stopped.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">First plays "bgm_s.wav" then loops "bgm_l.wav" ("bgm_s.wav" -&gt; "bgm_l.wav" -&gt; "bgm_l.wav" -&gt; ...)</div>
		<pre class="ExSource">loopbgm "bgm_s.wav","bgm_l.wav"</pre>
	</div>
	<hr>
		<a href="#loopbgmstop">loopbgmstop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="loopbgmstop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">loopbgmstop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>loopbgmstop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Stops playback of <b>loopbgm</b> music.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lr_trap"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lr_trap</div>
</h2><h4>
	<a href="#category_trap" class="WordCategory">Click Traps</a>
</h4><h3>lr_trap LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Destination for jump upon click</span>
	<div class="Space"></div>
</div><h3>lr_trap off</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Traps left and right clicks (or turns said trap off), directing the interpreter to the given label name.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lr_trap2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lr_trap2</div>
</h2><h4>
	<a href="#category_trap" class="WordCategory">Click Traps</a>
</h4><h3>lr_trap2 LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Destination for jump upon click during skip mode</span>
	<div class="Space"></div>
</div><h3>lr_trap2 off</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Similar to <b>lr_trap</b>, except this one functions in "skip to next choice" mode.
	</p>
	<hr>
		<a href="#lr_trap">lr_trap</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lrclick"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">lrclick</div>
</h2><h4>
	<a href="#category_click" class="WordCategory">Click Wait</a>
</h4><h3>lrclick</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Waits for either a left or right click.<br>
		The type of click of occurred can be retrieved using <b>getret</b>:<br>
		<span class="Indent"></span>getret %0<br>
		This will return 0 for a right-click and 1 for a left-click.
	</p>
	<hr>
		<a href="#click">click</a> / <a href="#getret">getret</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lsp</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>lsp NUM,STR,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or processing tag</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (0 - 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads and displays a sprite. Sprite numbers may range from 0 to 999.<br>
		The other numbers are, from left to right: x coordinate of upper left pixel, y coordinate of upper left pixel, and optional opacity value (0 for transparent up to 255 for opaque).<br>
		The only difference between <b>lsp</b> and <b>lsph</b> is the beginning condition of the sprite - <b>lsp</b> displays the sprite, while <b>lsph</b> keeps the sprite hidden (which may later be displayed with <b>vsp</b>).<br>
		<br>
		<b>Image processing tag format:</b><br>
		<span class="Indent"></span>"[:<b>(trans-mode)</b>[/<b>(animation)</b>];](filename)"<br>
		<span class="Indent"></span><b>OR</b><br>
		<span class="Indent"></span>"<b>:s</b>[<b>/(string-params);</b>]<b>(color)</b>[(color)...](text-string)" (added Ver.1.80)<br>
		<span class="Indent"></span><b>OR</b><br>
		<span class="Indent"></span>"[:(trans-mode)[/(animation)];]<b>&gt;(width),(height),(color)</b>[(color)...]" (added Ver.2.93)<br>
		<br>
		The first format is for processing image files - note that the <b>(filename)</b> by itself is fine for single-cell default transparency images. The possible arguments are:<br>
		<span class="Indent"></span><b>(transmode)</b>:<br>
		<span class="Indent"></span><span class="Indent"></span><b>l</b> - for 'leftup'; the color of the top-left pixel will be used as the transparent color<br>
		<span class="Indent"></span><span class="Indent"></span><b>r</b> - for 'rightup'; the color of the top-right pixel will be used as the transparent color<br>
		<span class="Indent"></span><span class="Indent"></span><b>c</b> - for 'copy'; shows the image as-is, no transparency settings<br>
		<span class="Indent"></span><span class="Indent"></span><b>a</b> - for 'alphablend'; the right half of the image contains alpha-level data for the left half<br>
		<span class="Indent"></span><span class="Indent"></span><b>m(filename)</b> - for 'mask'; uses the given file as alpha-level data for the main image<br>
		<br>
		<span class="Indent"></span><span class="Indent"></span><b>ONScripter-RU offers a few more tags</b><br>
		<span class="Indent"></span><span class="Indent"></span><b>d</b> - for 'add'; uses COPY and sets ADD blending mode<br>
		<span class="Indent"></span><span class="Indent"></span><b>b</b> - for 'sub'; uses COPY and sets SUB blending mode<br>
		<span class="Indent"></span><span class="Indent"></span><b>u</b> - for 'mul'; uses COPY and sets MUL blending mode<br>
		<br>
		<span class="Indent"></span>Note that for alpha-levels, black (#000000) = opaque and white (#ffffff) = completely transparent.<br>
		<span class="Indent"></span>If <b>(transmode)</b> is omitted, it assumes the default transparency setting provided via the <b>transmode</b> command.<br>
		<br>
		<span class="Indent"></span><b>(animation)</b>: <b>(num-cells)</b>,<b>(delay)</b>,<b>(loop-type)</b><br>
		<span class="Indent"></span>This optional parameter set tells how to animate a sprite with multiple cells.<br>
		<span class="Indent"></span>The image gets 'cut' into <b>(num-cells)</b> pieces, going from left to right. If the image contains alpha-level data, then each cell contains its own alpha-data in its right-half.<br>
		<span class="Indent"></span>The <b>(delay)</b> can either be a single value, telling the number of milliseconds to spend on each cell; or else it can have the format <b>&lt;(cell-1-delay),(cell-2-delay,...(cell-n-delay)&gt;</b>, giving varying delays per cell.<br>
		<span class="Indent"></span>The <b>(loop-type)</b> is a number telling how to cycle between the cells:<br>
		<span class="Indent"></span><span class="Indent"></span><b>0</b> - a repeated cycle (0,1,...n,0,1,...)<br>
		<span class="Indent"></span><span class="Indent"></span><b>1</b> - single time through (0,1,...n)<br>
		<span class="Indent"></span><span class="Indent"></span><b>2</b> - a 'bouncing' cycle (0,1,...n,n-1,...1,0,1,...)<br>
		<span class="Indent"></span><span class="Indent"></span><b>3</b> - no cycle (0); cell number is changed via <b>cell</b> command or sprite control (see <b>spstr</b>)<br>
		<br>
		The second tag format is for creating string sprites:<br>
		<span class="Indent"></span>"<b>:s</b>[<b>/(string-params);</b>]<b>(color)</b>[(color)...](text-string)"<br>
		Note that at least one color setting (#rrggbb) must be provided with the text. Other arguments are:<br>
		<span class="Indent"></span><b>(string-params)</b>: (char-width),(char-height),(X-spacing),<b>(decor)</b><br>
		<span class="Indent"></span>The character width, height, and spacing are the same kinds of numeric values used for <b>setwindow</b>, for example.<br>
		<span class="Indent"></span>The <b>(decor)</b> value describes a style for the text:<br>
		<span class="Indent"></span><span class="Indent"></span><b>0</b> - standard<br>
		<span class="Indent"></span><span class="Indent"></span><b>1</b> - none<br>
		<span class="Indent"></span><span class="Indent"></span><b>2</b> - open face<br>
		<span class="Indent"></span>If <b>(string-params)</b> are omitted, the text uses the sizing, spacing and style set by <b>setwindow</b> or <b>spfont</b>.<br>
		<span class="Indent"></span>If multiple <b>(color)</b> values are provided, it creates a string sprite with multiple cells - each cell with each different color. This can be useful for making text buttons.<br>
		For finer control and/or to make multiple-line string sprites, use the <b>strsp</b> command instead.<br>
		<br>
		The <b>NEW</b> third format is for creating single-color rectangle sprites:<br>
		<span class="Indent"></span>"[:(trans-mode)[/(animation)];]<b>&gt;(width),(height),(color)</b>[(color)...]"<br>
		The <b>(trans-mode)</b> and <b>(animation)</b> have the same syntax as used in the first tag format. The <b>(width)</b> and <b>(height)</b> provide the width and height of the resulting rectangle.<br>
		Note that there must be at least one color value provided; if multiple <b>(color)</b> values are provided, it creates a rectangle sprite with multiple cells - one cell for each different color.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Loads image "thing1.bmp", using default transparency type.</div>
		<pre class="ExSource">lsp 2,"thing1.bmp",0,0</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Loads image "thing1.bmp", using "mask1.bmp" for transparency data.</div>
		<pre class="ExSource">lsp 2,":mmask1.bmp;thing1.bmp",0,0</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">The default clickwait cursor: 'leftup' transmode, bouncing through 3 cells (0,1,2,1,0,...) with 160ms delay per cell.</div>
		<pre class="ExSource">lsp 0,":l/3,160,2;cursor0.bmp",0,0</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">The default clickwait cursor, but with 'jerky' animation.</div>
		<pre class="ExSource">lsp 0,":l/3,&lt;160,1000,400&gt;,2;cursor0.bmp",0,0</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates a 100x50 rectangular sprite with 2 cells (white and gray).</div>
		<pre class="ExSource">lsp 0,":c;&gt;100,50,#FFFFFF#888888",200,200</pre>
	</div>
	<hr>
		<a href="#lsph">lsph</a> / <a href="#strsp">strsp</a> / <a href="#spfont">spfont</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lsp2</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>lsp2 NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite.	Extended sprites add rotation about center and horizontal/vertical scaling to the existing sprite elements of position and opacity;	it's also possible to flip images with the use of negative scale factors.<br>
		Like <b>lsp</b>, <b>lsp2</b> loads images using the set display transparency mode.<br>
		The scaling factors are percentages; also note that providing a negative scaling factor will reverse the direction of the image.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The <b>lsp2</b> command does not correspond to current animation
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Loads and displays the image "test.bmp" without transparency, centered at (320,240), expanded to 200% vertically, and rotated 36 degrees counterclockwise.</div>
		<pre class="ExSource">lsp2 0,":c;test.bmp",320,240,100,200,36</pre>
	</div>
	<hr>
		<a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsp2add"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">lsp2add</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>lsp2add NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite using additive composition.<br>
		<b>lsp2add</b> uses additive blending for display, but otherwise it works the same as <b>lsp2</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Loads the image "test.bmp" and displays without transparency using additive blending, centered at (320,240), expanded to 200% vertically, and rotated 36 degrees counterclockwise.</div>
		<pre class="ExSource">lsp2add 0,":c;test.bmp",320,240,100,200,36</pre>
	</div>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsph2add">lsph2add</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsp2sub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.93</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">lsp2sub</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>lsp2add NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite using subtractive composition.<br>
		<b>lsp2sub</b> uses subtractive blending for display, but otherwise it works the same as <b>lsp2</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Loads the image "test.bmp" and displays without transparency using subtractive blending, centered at (320,240), expanded to 200% vertically, and rotated 36 degrees counterclockwise.</div>
		<pre class="ExSource">lsp2sub 0,":c;test.bmp",320,240,100,200,36</pre>
	</div>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#lsph2sub">lsph2sub</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsph"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lsph</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>lsph NUM,STR,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (0 - 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads a sprite in a hidden state.<br>
		The only difference between <b>lsp</b> and <b>lsph</b> is the beginning condition of the sprite - <b>lsp</b> displays the sprite, while <b>lsph</b> keeps the sprite hidden (which may later be displayed with <b>vsp</b>).
	</p>
	<hr>
		<a href="#lsp">lsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsph2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">lsph2</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>lsph2 NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite in a hidden state.<br>
		The only difference between <b>lsp2</b> and <b>lsph2</b> is the beginning condition of the extended sprite - <b>lsp2</b> displays the sprite, while <b>lsph2</b> keeps the sprite hidden (which may later be displayed with <b>vsp2</b>).
	</p>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsph2add"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">lsph2add</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>lsph2add NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite using additive composition, in a hidden starting state.<br>
		The only difference between <b>lsp2add</b> and <b>lsph2add</b> is the beginning condition of the extended sprite - <b>lsp2add</b> displays the sprite, while <b>lsph2add</b> keeps the sprite hidden (which may later be displayed with <b>vsp2</b>).
	</p>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsph2sub"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.93</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">lsph2sub</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>lsph2add NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite using subtractive composition, in a hidden starting state.<br>
		The only difference between <b>lsp2sub</b> and <b>lsph2sub</b> is the beginning condition of the extended sprite - <b>lsp2sub</b> displays the sprite, while <b>lsph2sub</b> keeps the sprite hidden (which may later be displayed with <b>vsp2</b>).
	</p>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#lsp2sub">lsp2sub</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="luacall"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">luacall</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>luacall NAME</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">System function name (tag, text0, text, animation, close, end, savepoint, save, load)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Many default NScripter system functions can now be replaced with Lua callbacks.<br>
		A Lua function could be created to handle text display using sprites, for example, as well as other sorts of system customization.<br>
		The specified character string need not be enclosed by double-quotes, and is case-insensitive.<br>
		The applicable Lua-side function must be named NSCALL_(sysfunc-name) and use the defined function argument structure for that particular call.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			<b>luacall animation</b> callback stub added in (Japanese) onscripter 20090510-exp. (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Specifies that Lua function NSCALL_text will be called for text display handling.</div>
		<pre class="ExSource">luacall text</pre>
	</div>
	<hr>
		<a href="#luasub">luasub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="luasub"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">luasub</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>luasub NAME</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Instruction name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Defines a new command with the given name and ties it to a Lua function NSCOM_(cmd-name).<br>
		Any time the command is executed within the script, that Lua function will be called.<br>
		A Lua function registered with <b>luasub</b> must be void - no arguments or return values.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Existing NScr commands may be replaced using <b>luasub!</b><br>
			For example, <b>luasub bg</b> will cause Lua function NSCOM_bg() to be called instead of the standard <b>bg</b> command.<br>
			As with <b>defsub</b>, you can use <b>_bg</b> to call the original <b>bg</b> instruction.
		</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			<b>luasub</b> stub added in (Japanese) onscripter 20090510-exp. (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Specifies that Lua function NSCOM_func will be called when the "func" command is executed.</div>
		<pre class="ExSource">luasub func</pre>
	</div>
	<hr>
		<a href="#luacall">luacall</a> / <a href="#defsub">defsub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="maxkaisoupage"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.01</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">maxkaisoupage</div>
</h2><h4>
	<a href="#category_lookback" class="WordCategory">Log Mode</a>
</h4><h3>maxkaisoupage NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Maximum number of pages to store in backlog buffer</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets the maximum number of pages that may be stored for Log Mode.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Allows access to only the previous 10 pages in Log Mode.</div>
		<pre class="ExSource">maxkaisoupage 10</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_click_def"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">menu_click_def</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_click_def</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Enters default text display (not single-page) mode; see <b>menu_click_page</b>.
	</p>
	<hr>
		<a href="#menu_click_page">menu_click_page</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_click_page"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">menu_click_page</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_click_page</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Enters single-page text display mode, as provided via the 表示形式(Display Format) menubar item.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This and <b>menu_click_def</b> affect what *ONScripter provides as "page-at-once" mode, using 'o' keystroke toggle. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#menu_click_def">menu_click_def</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_dwavvol"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.97</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">menu_dwavvol</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_dwavvol</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Displays the volume change dialog box.</p>
	<hr>
		<a href="#mp3vol">mp3vol</a> / <a href="#voicevol">voicevol</a> / <a href="#sevol">sevol</a> / <a href="#bgmvol">bgmvol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_full"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">menu_full</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_full</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Enters fullscreen mode.</p>
	<hr>
		<a href="#menu_window">menu_window</a> / <a href="#isfull">isfull</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_waveoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( ONScr-EN<span class="EngineVersion">20091230</span> )
			</span>
		</span>
	</div>
	<div class="WordName">menu_waveoff</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_waveoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Disables (or mutes) main volume.</p>
	<hr>
		<a href="#menu_waveon">menu_waveon</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_waveon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( ONScr-EN<span class="EngineVersion">20091230</span> )
			</span>
		</span>
	</div>
	<div class="WordName">menu_waveon</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_waveon</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Enables main volume (turning off volume mute, if set).</p>
	<hr>
		<a href="#menu_waveoff">menu_waveoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menu_window"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">menu_window</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>menu_window</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Enters windowed mode.</p>
	<hr>
		<a href="#menu_full">menu_full</a> / <a href="#isfull">isfull</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menuselectcolor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">menuselectcolor</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>menuselectcolor COLOR,COLOR,COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Mouseover color</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Mouseoff color</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Empty savefile slot color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command sets the colors of the right-click menu when the right-click menu functionality is enabled. In order, the colors are the mouseover color, the mouseout color, and the "no savefile exists" color.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menuselectvoice"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">menuselectvoice</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>menuselectvoice STR,STR,STR,STR,STR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays when a menu opens</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays at menu cancel</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays upon mouseover of a menu item</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays when a menu item is clicked</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays at an error</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays when 'Yes' option chosen</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sound file that plays when 'No' option chosen</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designates the WAV files that are played for menu choices, and other system sounds.<br>
		<br>
		From left to right, the strings are: menu open, menu cancel, menu item mouseover, on click, forbidden operation, "yes" confirmation, "no" confirmation.<br>
		<br>
		If any of these are set to "", no sound plays.<br>
		By default, all of these sounds are set to "".
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="menusetwindow"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">menusetwindow</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>menusetwindow NUM,NUM,NUM,NUM,NUM,NUM,COLOR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Window color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a menu dialog window.<br>
		This window displays above all other items in the screen when active.<br>
		From left to right, the arguments are: character font size x, character font size y, kerning x, kerning y, boldface (1 - yes; 0 - no), drop shadow (1 - yes; 0 - no); the final #rrggbb parameter is the window color.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mesbox"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">mesbox</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>mesbox STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to display</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Messagebox title</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Shows a message box.<br>
		The first string is the contents of the box, the second string is the title of said box.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mid"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mid</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mid $VAR,STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable to receive the substring</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to extract from</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Starting index of the substring</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (half-width) characters to extract</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Extracts a substring from the given character string.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Use starting index 0 for the first character. Also, to get exactly 1 full-width character, specify 2 as the number of chars to extract.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Extracts a substring of length %1 starting at index %0 from string $1, and assigns the result to $0.</div>
		<pre class="ExSource">mid $0,$1,%0,%1</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Grabs the first 5 characters of $1 and assigns the substring to $0.</div>
		<pre class="ExSource">mid $0,$1,0,5</pre>
	</div>
	<hr>
		<a href="#len">len</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="minimizewindow"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">minimizewindow</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>minimizewindow</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Minimizes the game window.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mod"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mod</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mod %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to divide by and get remainder</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Finds the remainder after the variable is divided by the number (same as the x % y command in C).</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			You can also use <b>mod</b> as an expression operator, as follows:<br>
			mov %0,%1 mod 2
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mode_ext"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mode_ext</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>mode_ext</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This is a command developed especially for the commercial software "Gin'iro". When you use this command, you can enter Auto Mode from the menu. It is similar in concept to the "skip to next choice" option, but displays characters much more slowly (with a delay defined by automode_time). This makes it almost like a mode in which the computer reads the text to you.<br>
		<br>
		You can adjust sound playback volume from the NScr menus while Auto Mode is progressing (MP3(BGM), voice(DWAVE 0), and SE(DWAVE 1+) are all active and adjustable).<br>
		<br>
		There are future plans to add more functionality to this command, and to make things conform to predefined syntaxes.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mode_saya"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mode_saya</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>mode_saya</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		A command mode written especially for the doujin game, "Saya ~Labyrinth of Immorality~". Once you specify this command, you enter: the legendary Saya Mode!<br>
		In Saya mode, when the text window disappears:<br>
		<br>
		<span class="Indent"></span>* Sprites 0-9 also disappear, regardless of whether they're flagged to be visible or not.<br>
		<span class="Indent"></span>* Bars and numbers indicating status underneath the text window also disappear.<br>
		<br>
		You would use this, for instance, when you had a parameter status window that you wanted to hide when the text window disappeared.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mode_wave_demo"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mode_wave_demo</div>
</h2><h4>
	<a href="#category_kidokuskip" class="WordCategory">Skip Mode</a>
</h4><h3>mode_wave_demo</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Usually WAV files are not played during "skip to next choice" mode, but specifying this command will have them be played.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			ONScripter doesn't recognize this command, but plays WAV files during skip mode anyway. ONScripter-EN supports this command since ver.20090816 (as does PONScripter since ver.20100205) by playing WAV files during skips only if <b>mode_wave_demo</b> is used. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mode320"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.01</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mode320</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>;mode320</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Enables 320x240 screen mode. This command must be the first line in the script - even above <b>*define</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Even when this command is used, the text window is still sized as for 640x480. Therefore, you will need to adjust it with <b>setwindow</b>.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the game screen size to 320x240.</div>
		<pre class="ExSource">
;mode320
*define</pre>
	</div>
	<hr>
		<a href="#mode800">mode800</a> / <a href="#mode400">mode400</a> / <a href="#value">value</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mode400"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.01</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mode400</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>;mode400</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Enables 400x300 screen mode. This command must be the first line in the script - even above <b>*define</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Even when this command is used, the text window is still sized as for 640x480. Therefore, you will need to adjust it with <b>setwindow</b>.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the game screen size to 400x300.</div>
		<pre class="ExSource">
;mode400
*define</pre>
	</div>
	<hr>
		<a href="#mode800">mode800</a> / <a href="#mode320">mode320</a> / <a href="#value">value</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mode800"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mode800</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>;mode800</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Enables 800x600 screen mode (yes, the ';' in the beginning is necessary!). This command must be the first line in the script - even above <b>*define</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Even when this command is used, the text window is still sized as for 640x480. Therefore, you will need to adjust it with <b>setwindow</b>.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the game screen size to 800x600.</div>
		<pre class="ExSource">
;mode800
*define</pre>
	</div>
	<hr>
		<a href="#mode400">mode400</a> / <a href="#mode320">mode320</a> / <a href="#value">value</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="monocro"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">monocro</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>monocro COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Base color</span>
	<div class="Space"></div>
</div><h3>monocro off</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Fades the screen to monochrome, using the given color as a base.<br>
		The text window and cursor will not follow suit.<br>
		Use "off" as the parameter to make the colors return to normal.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mousecursor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">mousecursor</div>
</h2><h4>
	<a href="#category_cursor" class="WordCategory">Cursor</a>
</h4><h3>mousecursor STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Mouse cursor file</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Loads a Windows mouse cursor definition file (.cur) and utilizes it. </p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Non-recommendation of this command is removed as of ver2.93.</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mousemode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.93</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">mousemode</div>
</h2><h4>
	<a href="#category_cursor" class="WordCategory">Cursor</a>
</h4><h3>mousemode NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Mouse cursor display flag (0: hidden, 1: displayed)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Setting <b>mousemode 0</b> hides the mouse cursor, while <b>mousemode 1</b> displays it.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value</span>
	<div class="Space"></div>
</div><h3>mov $VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string value</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Assigns a variable with a new value.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets numeric variable %3 to 24.</div>
		<pre class="ExSource">mov %3,24</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets string variable $0 to a filename.</div>
		<pre class="ExSource">mov $0,"myfile.jpg"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov10"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov10</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov10 %VAR,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #5</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #6</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #7</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #8</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #9</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #10</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 10 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8,10,12,14,16,18,20
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8
;mov %7,10
;mov %8,12
;mov %9,14
;mov %10,16
;mov %11,18
;mov %12,20</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov4">mov4</a> / <a href="#mov5">mov5</a> / <a href="#mov6">mov6</a> / <a href="#mov7">mov7</a> / <a href="#mov8">mov8</a> / <a href="#mov9">mov9</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov3"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov3</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov3 %VAR,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This command fills 3 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.<br>
		<br>
		<b>mov4</b>, <b>mov5</b>, <b>mov6</b>, <b>mov7</b>, <b>mov8</b>, <b>mov9</b>, and <b>mov10</b> all follow suit from this.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, and %5 to 6.</div>
		<pre class="ExSource">
mov3 %3,2,4,6
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov4">mov4</a> / <a href="#mov5">mov5</a> / <a href="#mov6">mov6</a> / <a href="#mov7">mov7</a> / <a href="#mov8">mov8</a> / <a href="#mov9">mov9</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov4"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov4</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov4 %VAR,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 4 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov5">mov5</a> / <a href="#mov6">mov6</a> / <a href="#mov7">mov7</a> / <a href="#mov8">mov8</a> / <a href="#mov9">mov9</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov5"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov5</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov5 %VAR,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #5</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 5 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8,10
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8
;mov %7,10</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov4">mov4</a> / <a href="#mov6">mov6</a> / <a href="#mov7">mov7</a> / <a href="#mov8">mov8</a> / <a href="#mov9">mov9</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov6"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov6</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov6 %VAR,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #5</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #6</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 6 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8,10,12
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8
;mov %7,10
;mov %8,12</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov4">mov4</a> / <a href="#mov5">mov5</a> / <a href="#mov7">mov7</a> / <a href="#mov8">mov8</a> / <a href="#mov9">mov9</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov7"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov7</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov7 %VAR,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #5</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #6</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #7</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 7 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8,10,12,14
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8
;mov %7,10
;mov %8,12
;mov %9,14</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov4">mov4</a> / <a href="#mov5">mov5</a> / <a href="#mov6">mov6</a> / <a href="#mov8">mov8</a> / <a href="#mov9">mov9</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov8"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov8</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov8 %VAR,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #5</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #6</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #7</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #8</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 8 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8,10,12,14,16
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8
;mov %7,10
;mov %8,12
;mov %9,14
;mov %10,16</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov4">mov4</a> / <a href="#mov5">mov5</a> / <a href="#mov6">mov6</a> / <a href="#mov7">mov7</a> / <a href="#mov9">mov9</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mov9"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mov9</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mov9 %VAR,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #1</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #2</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #3</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #4</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #5</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #6</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #7</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #8</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value #9</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This command fills 9 numeric variables - starting from the one specified and incrementing upward - with the specified numbers.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This can't be used with string variables. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets %3 to 2, %4 to 4, %5 to 6, and so forth.</div>
		<pre class="ExSource">
mov3 %3,2,4,6,8,10,12,14,16,18
;is equivalent to
;mov %3,2
;mov %4,4
;mov %5,6
;mov %6,8
;mov %7,10
;mov %8,12
;mov %9,14
;mov %10,16
;mov %11,18</pre>
	</div>
	<hr>
		<a href="#mov">mov</a> / <a href="#mov3">mov3</a> / <a href="#mov4">mov4</a> / <a href="#mov5">mov5</a> / <a href="#mov6">mov6</a> / <a href="#mov7">mov7</a> / <a href="#mov8">mov8</a> / <a href="#mov10">mov10</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="movemousecursor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.00</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">movemousecursor</div>
</h2><h4>
	<a href="#category_cursor" class="WordCategory">Cursor</a>
</h4><h3>movemousecursor NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate for mouse cursor destination</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate for mouse cursor destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Moves the mouse cursor to an arbitrary position on the screen.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This moves the mouse to (100,10).</div>
		<pre class="ExSource">movemousecursor 100,10</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="movie"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">
				ONScr<span class="EngineVersion">20090116</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20090419</span> )
			</span>
		</span>
	</div>
	<div class="WordName">movie</div>
</h2><h4>
	<a href="#category_movieplay" class="WordCategory">Movie Playback</a>
</h4><h3>movie STR[,'pos',NUM,NUM,NUM,NUM][,'click'][,'loop'][,'async']</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Movie filename</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Movie window top-left X coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Movie window top-left Y coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Movie window width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Movie window height</span>
	<div class="Space"></div>
</div><h3>movie stop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This movie playback command is intended to replace <b>mpegplay</b>.<br>
		<br>
		The following options may be combined:<br>
		<span class="Indent"></span><b>movie "filename"</b> ;Plays until completion, can't be interrupted<br>
		<span class="Indent"></span><b>movie "filename",pos,10,20,320,240</b> ;Positions the movie within a 320x240 window with top-left at (10,20)<br>
		<span class="Indent"></span><b>movie "filename",click</b> ;Movie playback is click-interruptible (not valid in <b>async</b> mode)<br>
		<span class="Indent"></span><b>movie "filename",loop</b> ;Plays the movie repeatedly (must be combined with either <b>click</b> or <b>async</b>, otherwise it can't be stopped!)<br>
		<span class="Indent"></span><b>movie "filename",async</b> ;Asynchronous playback. The script returns to command interpretation while playback continues. The movie will always be the top layer on-screen, even atop text.<br>
		<span class="Indent"></span><b>movie stop</b> ;Use this to stop <b>async</b> movie playback
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The movie image remains on-screen after playback finishes.<br>
			Since the movie is considered invalid data, it's possible to revert to the screen as it was beforehand by using <b>print</b>.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "test.mpg" looped, within a 320x240 window at coordinate (10,20), and asynchronously; it then stops playback after a 30 second wait.</div>
		<pre class="ExSource">
movie "test.mpg",pos,10,20,320,240,async,loop
wait 30*1000
movie stop</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "test.mpg", click-interruptible, then crossfades to the previous screen after playback is complete.</div>
		<pre class="ExSource">
movie "test.mpg",click
print 10,1000</pre>
	</div>
	<hr>
		<a href="#mpegplay">mpegplay</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="movl"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">movl</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>movl ARRAY,NUM[,NUM[,...]]</h3><div class="Arguments">
	<span class="ArgType">ARRAY</span>
	<span class="ArgMeaning">Array variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Enters numbers into an array all at once.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Define an array ?10 of length 5 and populate it.</div>
		<pre class="ExSource">
dim ?10[4]
movl ?10,0,1,2,3,4</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Define a two-dimensional array ?20 of size 3x4 and populate it, line by line.</div>
		<pre class="ExSource">
dim ?20[2][3]
movl ?20[0],0,1,2,3
movl ?20[1],0,2,4,6
movl ?20[2],0,3,6,9</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mp3</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3 STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">MP3 filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		If mp3dec.dll is used (this functionality is built into ONScripter), you can use this to play an mp3 file. <b>mp3</b> plays the file only once, while <b>mp3loop</b> loops the file. You may issue wave commands while mp3's are playing with no ill effects.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3fadein"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.24</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">mp3fadein</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3fadein NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">BGM playback fade-in time (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		The same as <b>bgmfadein</b>.
	</p>
	<hr>
		<a href="#bgmfadeout">bgmfadeout</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3fadeout"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20060621</span> )
			</span>
		</span>
	</div>
	<div class="WordName">mp3fadeout</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3fadeout NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">MP3 playback fade-out time (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets MP3 (BGM) fadeout time in milliseconds. Same as <b>bgmfadeout</b> (added in Ver2.21).
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			In versions of ONScripter-EN before 20090417, <b>mp3fadeout</b> did an immediate fadeout instead of setting the behavior for <b>mp3stop</b>. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#bgmfadein">bgmfadein</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3loop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mp3loop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3loop STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">MP3 filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		If mp3dec.dll is used (this functionality is built into ONScripter), you can use this to play an mp3 file. <b>mp3</b> plays the file only once, while <b>mp3loop</b> loops the file. You may issue wave commands while mp3's are playing with no ill effects.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3save"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mp3save</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3save</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Just like the <b>mp3</b> command, this plays back an mp3 only once; however, if the player saves during playback, the mp3 will start playing upon reload.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3stop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.01</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mp3stop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3stop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Stops playback of compressed music.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mp3vol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.98</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mp3vol</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>mp3vol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sound volume (0-100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the volume of the BGM. This applies to both <b>bgm</b> and <b>mp3</b> commands.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Volume changes are not saved, so manage them manually or with variables.<br>
			This does not affect the <b>play</b> instruction. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets BGM volume to maximum (100)</div>
		<pre class="ExSource">mp3vol 100</pre>
	</div>
	<hr>
		<a href="#chvol">chvol</a> / <a href="#voicevol">voicevol</a> / <a href="#sevol">sevol</a> / <a href="#bgmvol">bgmvol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mpegplay"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mpegplay</div>
</h2><h4>
	<a href="#category_movieplay" class="WordCategory">Movie Playback</a>
</h4><h3>mpegplay STR,NUM</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Movie filename</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Interrupt flag (0: play whole thing, 1: click-interruptible)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Plays an MPEG video file. The second parameter can be 0 or 1, and determines whether the player must watch the whole movie (0) or can skip the movie by clicking (1).</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "test.mpeg", click-interruptible.</div>
		<pre class="ExSource">mpegplay "test.mpeg",1</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="msp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">msp</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>msp NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity offset</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Moves the sprite of the designated number, adjusting the position and opacity relative to their current values.<br>
		<br>
		Like the <b>tal</b> command, and other sprite system commands, The results of <b>msp</b> will not show up immediately on screen (this is for ease and speed of batch processing).<br>
		So before you call any text or image display commands after an <b>msp</b>, please call a <b>print</b> command to update the screen before continuing.
	</p>
	<hr>
		<a href="#amsp">amsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="msp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">msp2</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>msp2 NUM,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X scaling factor offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y scaling factor offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle offset</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity offset</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Moves the extended sprite of the designated number, adjusting its position, scale, rotation and opacity relative to their current values.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Takes Extended-Sprite 0 and moves it 10 pixels right and 20 pixels down, while decreasing its X-scale factor by 10, increasing its Y-scale factor by 10, and adding 5 degrees to its rotation.</div>
		<pre class="ExSource">msp2 0,10,20,-10,10,5</pre>
	</div>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mul"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">mul</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>mul %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to multiply</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Multiplies the variable by the number and stores the result in the variable.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="mv"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.20</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">mv</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>'mv'NUM':'</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Voice file number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is a shorthand command for playing mp3 voice files.<br>
		It is equivalent to <b>mp3 "voice\(num).mp3"</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "voice\0001.mp3" via the mp3 command before outputting text.</div>
		<pre class="ExSource">mv0001:「これが０００１番のせりふだよー」</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="nega"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">nega</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>nega NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Display flag (0: off, 1: monochrome-priority, 2: negative-priority)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		If flag is 1 or 2, it causes a negative of the current image.<br>
		Use 1 to apply (any) <b>monocro</b> on top of the <b>nega</b>, 2 to apply <b>nega</b> atop the <b>monocro</b> (i.e. 1 applies <b>nega</b> first, 2 applies <b>monocro first</b>).<br>
		If 0, the image flips back to positive.<br>
		Neither <b>monocro</b> nor <b>nega</b> update the screen themselves, so please call <b>print</b> afterwards.
	</p>
	<hr>
		<a href="#monocro">monocro</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="next"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">next</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>next</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This ends a <b>for</b> block. Please refer to the documentation of <b>for</b> for more details.
	</p>
	<hr>
		<a href="#for">for</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="nextcsel"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.80</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">nextcsel</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>nextcsel %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable (1: next cmd is csel, 0: not csel</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Returns 1 if the next command is <b>csel</b>, 0 otherwise. This may be useful in displaying choices without erasing text.
	</p>
	<hr>
		<a href="#csel">csel</a> / <a href="#_customsel-label">*customsel</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="noloaderror"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">noloaderror</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>noloaderror</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		The program won't fail with an error if a sound or image load command, such as <b>ld</b> or <b>bgm</b>, fails to load a file.
	</p>
	<hr>
		<a href="#bg">bg</a> / <a href="#ld">ld</a> / <a href="#bgm">bgm</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="noteraseman"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.99</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">noteraseman</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>noteraseman</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Standing images will not be erased when the text window is removed.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Does this actually do anything? (by Mion)</div>
	</div>
	<hr>
		<a href="#textoff">textoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="notif"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">notif</div>
</h2><h4>
	<a href="#category_statement" class="WordCategory">Conditionals/Loops</a>
</h4><h3>notif CONDITION[{&amp;&amp;,&amp;} CONDITION[...]] SENTENCE</h3><div class="Arguments">
	<span class="ArgType">CONDITION</span>
	<span class="ArgMeaning">Relative operation, check instruction, or some other truth-value returning expression</span>
	<div class="Space"></div>
	<span class="ArgType">SENTENCE</span>
	<span class="ArgMeaning">Command(s) to execute if the condition was False</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		The commands following the if statement are executed if the conditional statement(s) evaluate false; if you want branch control in which a command executes if a conditional statement is true, use <b>if</b>.<br>
		The conditions compare numerical values, else you can employ <b>fchk</b>.<br>
		<b>&amp;</b> and <b>&amp;&amp;</b> are logical 'ands', and are equivalent to each another.<br>
		<br>
		<span class="Indent"></span><b>Conditions:</b><br>
		<span class="Indent"></span>(numerical variable) {&gt;,&lt;,=,&gt;=,&lt;=,==,!=,&lt;&gt;} (numeric variable)<br>
		<span class="Indent"></span>- or -<br>
		<span class="Indent"></span><b>fchk</b> (character string)
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">If %0 is not equal to 1, do a 1/2 second horizontal screen shake.</div>
		<pre class="ExSource">notif %0=1 quakex 2,500</pre>
	</div>
	<hr>
		<a href="#if">if</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="nsa"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">nsa</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>nsa</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Allows for NSA archive mode. In this mode, resources such as BMPs may be read from nsa*.arc, located in the same directory as the executable itself. The nsa*.arc files themselves are generated by nsaarc.exe, which can be found in the NScr SDK.<br>
		<br>
		Please note that you may consecutively name files as arc.nsa, arc1.nsa, arc2.nsa ... arc9.nsa, and for the purposes of the interpreter, they will all be considered as part of the same namespace - like one big archive. You may use this to quickly unpackage and repackage archives for testing.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="nsadir"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">nsadir</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>nsadir STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Directory to be read for NSA archives</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets the folder search path for nsa archives. By default, this is the same directory where the executable resides.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="numalias"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">numalias</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>numalias NAME,NUM</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Alias name</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value given by alias</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Creates a name that serves as an alias for a numeric value.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Use an alias "ef_lshutter" for the number 2.</div>
		<pre class="ExSource">
numalias ef_lshutter,2
;Now the following 2 lines are equivalent.
bg "test.bmp",ef_lshutter
bg "test.bmp",2</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">(Advanced) Use a numeric alias for a variable number.</div>
		<pre class="ExSource">
numalias akari_love,0
;Now the following 2 lines are equivalent.
add %akari_love,10
add %0,10</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="ofscpy"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">ofscpy</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>ofscpy</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Copies things drawn using a <b>blt</b> command to the offscreen buffer.<br>
		<b>Explanation:</b><br>
		<span class="Indent"></span>Once you have blitted an image onto the screen, and want to use an effect on it, you would use this command to copy it to the offscreen buffer.<br>
		<span class="Indent"></span>The offscreen buffer saved by this command may be used in effects, just like any other screen buffer.<br>
		<span class="Indent"></span>The image and the effect will display, but they will not be remembered via load/save.<br>
		<br>
		By using <b>blt</b> and <b>ofscpy</b> together, you can create engine cutscenes and such (like those found in AIR).
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment"></div>
		<pre class="ExSource">
btndef "～"
;read animation images

bg ～
ld c,～
;all commands up until this point have been standard image commands, so they will show fine.

resettimer
blt ～
waittimer 100
blt ～
waittimer 100
;in this fashion we display images one after the other for an engine cutscene.

;now that we've blitted a bunch of stuff, to use effects on the image, we need to copy it to the offscreen buffer.
ofscpy
bg ～

;and now you can do anything you want to either the onscreen or the offscreen buffer.
bg ～
ld c,～</pre>
	</div>
	<hr>
		<a href="#blt">blt</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="okcancelbox"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.47</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">okcancelbox</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>okcancelbox %VAR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result: 1 for OK, 0 for Cancel</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to display</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Dialog box title</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Shows a Windows OK/Cancel dialog box and retrieves user input.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates an OK/Cancel dialog titled "セーブ確認" (Confirm Save) with the message "セーブします。" (About to Save).</div>
		<pre class="ExSource">okcancelbox %0,"セーブします。","セーブ確認"</pre>
	</div>
	<hr>
		<a href="#yesnobox">yesnobox</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pagetag"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.82</span>
			</span>, <span class="NoBr">
				ONScr<span class="EngineVersion">20080121</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20080310</span> )
			</span>
		</span>
	</div>
	<div class="WordName">pagetag</div>
</h2><h4>
	<a href="#category_tag" class="WordCategory">Pretext Tags</a>
</h4><h3>pagetag</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		A <b>pretextgosub</b>-enabled script will only check for <b>[]</b> pretext tags at the start of a page, not at the start of every line (or text command).
	</p>
	<hr>
		<a href="#pretextgosub">pretextgosub</a> / <a href="#_squarebrackets">[]</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pbreakstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20090926</span> )
			</span>
		</span>
	</div>
	<div class="WordName">pbreakstr</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>pbreakstr STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Break characters</span>
	<div class="Space"></div>
</div><h3>pbreakstr basic</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword for the standard linebreaking characters</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies a set of characters that allow linebreaks; if necessary for word-wrapping, ponscripter will make a new line right after one of these characters.<br>
		Giving an empty string will clear all linebreak characters (including space!)<br>
		<br>
		Using the <b>basic</b> keyword will set the following characters as breaking:<br>
		<span class="Indent"></span><b>' '</b> U+0020 (space - default)<br>
		<span class="Indent"></span><b>-</b> U+202d (hyphen-minus)<br>
		<span class="Indent"></span><b>–</b> U+2013 (en dash)<br>
		<span class="Indent"></span><b>-</b> U+2014 (em dash)<br>
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Since ponscripter-20091015, scripts start out with only the space character defined for linebreaking, so please use this command if you want other break characters. <b>pbreakstr basic</b>will restore the default break characters from earlier ponscripter versions. (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Sets space, comma and hyphen as break characters.</div>
		<pre class="ExSource">pbreakstr ^ ,-^</pre>
	</div>
	<hr>
		<a href="#_tildetag">~</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pfontstyle"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20090926</span> )
			</span>
		</span>
	</div>
	<div class="WordName">pfontstyle</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>pfontstyle STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font style tag</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets the default text styling.	This command is equivalent to inserting a <b>~d</b> STR<b>~</b><br> formatting tag at the start of every subsequent text command (though it has no effect on sprites).<br>
		<br>
		Only font style tags are may be used; size and position tags are not supported.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Displays text in italic display font (slot 5).</div>
		<pre class="ExSource">
pfontstyle "si"
^Here is a page of italic text.\
^And it's still italic!\
pfontstyle ^d^ ;back to regular style</pre>
	</div>
	<hr>
		<a href="#_tildetag">~</a> / <a href="#pmapfont">pmapfont</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pindentstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20090926</span> )
			</span>
		</span>
	</div>
	<div class="WordName">pindentstr</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>pindentstr STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Indent characters</span>
	<div class="Space"></div>
</div><h3>pindentstr basic</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword for the standard indenting characters</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Specifies a set of characters where, if one appears as the first character of a page, it will set an indent; this is equivalent to following the character with a <b>~n~</b> formatting tag.<br>
		Giving an empty string will clear all indent characters.<br>
		<br>
		Using the <b>basic</b> keyword will cause indenting on the following characters:<br>
		<span class="Indent"></span><b>(</b> U+0028 (left paren)<br>
		<span class="Indent"></span><b>-</b> U+2014 (em dash)<br>
		<span class="Indent"></span><b>‘</b> U+2018 (left single curly quote)<br>
		<span class="Indent"></span><b>“</b> U+201c (left double curly quote)<br>
		<span class="Indent"></span><b>「</b> U+300c (left corner bracket)<br>
		<span class="Indent"></span><b>『</b> U+300e (left white corner bracket)<br>
		<span class="Indent"></span><b>（</b> U+ff08 (fullwidth left paren)<br>
		<span class="Indent"></span><b>～</b> U+ff5e (fullwidth tilde)<br>
		<span class="Indent"></span><b>｢</b> U+ff62 (halfwidth left corner bracket)
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Since ponscripter-20091015, scripts start out with <b>no</b>defined indent characters, so please use this command if you want indenting characters.<br>
			<b>pindentstr basic</b>will restore the default indent characters from earlier ponscripter versions. (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Sets quote marks (undirected and left) as indenting characters.</div>
		<pre class="ExSource">pindentstr ^"'‘“^</pre>
	</div>
	<hr>
		<a href="#_tildetag">~</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="play"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">play</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>play STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">MIDI filename or CD track number label</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays a MIDI file or CD audio track.<br>
		<br>
		If you specify a file name, then the corresponding MIDI file will be played, but if you specify "*(number)", then the appropriate CD track will play.<br>
		<br>
		<b>play</b> will loop the MIDI file/CD audio; if you want a file/track to play once, use the <b>playonce</b> command.
	</p>
	<hr>
		<a href="#playstop">playstop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="playonce"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">playonce</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>playonce STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">MIDI filename or CD track number label</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays a MIDI file or CD audio track.<br>
		<br>
		If you specify a file name, then the corresponding MIDI file will be played, but if you specify "*(number)", then the appropriate CD track will play.<br>
		<br>
		Use <b>play</b> to loop the MIDI file/CD audio instead of playing just once.
	</p>
	<hr>
		<a href="#playstop">playstop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="playstop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">playstop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>playstop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Stops MIDI/CD audio playback.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pligate"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20090926</span> )
			</span>
		</span>
	</div>
	<div class="WordName">pligate</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>pligate STR,NUM|STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Shortcut matching text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Unicode codepoint for shortcut result (if numeric)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">(Unicode) char for shortcut result (if string)</span>
	<div class="Space"></div>
</div><h3>pligate STR,remove</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Shortcut matching text</span>
	<div class="Space"></div>
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword to remove the defined matching shortcut</span>
	<div class="Space"></div>
</div><h3>pligate {none|default|basic|punctuation|f_ligatures|specials|all}</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Keyword for a preset shortcut set</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Adds or removes shortcut sequences. This commands lets you define a sequence of ASCII (or Unicode) characters to be replaced with a single Unicode character within text, for use as shortcuts or mappings to ligatures.<br>
		<br>
		The Unicode result for a particular shortcut may be given either as the numeric value of a Unicode codepoint, or as a string whose first (Unicode) character will be used as the result. Use the bareword <b>remove</b> to remove the shortcut with the defined sequence.<br>
		<br>
		In its single-argument form, this command enables the specified preset shortcuts. Valid arguments are:<br>
		<br>
		<span class="Indent"></span><b>none</b> - will <b>remove all</b> defined shortcuts, even defaults<br>
		<span class="Indent"></span><b>all</b> - adds all of the following preset shortcuts<br>
		<span class="Indent"></span><b>default</b> - enables <b>basic</b> and <b>specials</b> presets (default)<br>
		<span class="Indent"></span><b>f_ligatures</b> - adds ligatures for "ff", "fi", "fl", "ffi", and "ffl"<br>
		<span class="Indent"></span><b>specials</b> - adds the hash escape sequences for the special characters <b>@</b>, <b>/</b>, <b>\</b>, <b>_</b>, <b>^</b>, <b>`</b>, <b>!</b>, <b>#</b><br>
		<span class="Indent"></span><b>basic</b> - adds the following sequences for quotes:<br>
		<span class="Indent"></span><span class="Indent"></span>"`"<span class="Indent"></span> <b>‘</b> (left single quotation mark)<br>
		<span class="Indent"></span><span class="Indent"></span>"``"<span class="Indent"></span> <b>“</b> (left double quotation mark)<br>
		<span class="Indent"></span><span class="Indent"></span>"'"<span class="Indent"></span> <b>’</b> (right single quotation mark)<br>
		<span class="Indent"></span><span class="Indent"></span>"''"<span class="Indent"></span> <b>”</b> (right double quotation mark)<br>
		<span class="Indent"></span><b>punctuation</b> - adds shortcuts for these punctuation symbols:<br>
		<span class="Indent"></span><span class="Indent"></span>"%-"<span class="Indent"></span> <b>‑</b> (non-breaking hyphen)<br>
		<span class="Indent"></span><span class="Indent"></span>"%_"<span class="Indent"></span> U+00A0 (non-breaking space)<br>
		<span class="Indent"></span><span class="Indent"></span>"%."<span class="Indent"></span> U+2009 (thin space)<br>
		<span class="Indent"></span><span class="Indent"></span>"..."<span class="Indent"></span> <b>…</b> (horizontal ellipsis)<br>
		<span class="Indent"></span><span class="Indent"></span>"--"<span class="Indent"></span> <b>–</b> (en dash)<br>
		<span class="Indent"></span><span class="Indent"></span>"---"<span class="Indent"></span> <b>—</b> (em dash)<br>
		<span class="Indent"></span><span class="Indent"></span>"(c)"<span class="Indent"></span> <b>©</b> (copyright sign)<br>
		<span class="Indent"></span><span class="Indent"></span>"(r)"<span class="Indent"></span> <b>®</b> (registered sign)<br>
		<span class="Indent"></span><span class="Indent"></span>"(tm)"<span class="Indent"></span> <b>™</b> (trademark sign)<br>
		<span class="Indent"></span><span class="Indent"></span>"++"<span class="Indent"></span> <b>†</b> (dagger)<br>
		<span class="Indent"></span><span class="Indent"></span>"+++"<span class="Indent"></span> <b>‡</b> (double dagger)<br>
		<span class="Indent"></span><span class="Indent"></span>"**"<span class="Indent"></span> <b>•</b> (bullet)<br>
		<br>
		To display a shortcut sequence as-is within text, insert a Unicode zero-width non-joiner (ZWNJ) or its builtin shortcut <b>|</b> within the sequence to prevent it from matching the shortcut. (The ZWNJ will not be displayed).<br>
		If the Unicode character for a shortcut/ligature is not present in the current font, that shortcut sequence will not be replaced in text.<br>
		<br>
		Please note that this command, and ligature/shortcut processing in general, are not available in onscripter compatibility mode.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Defines shortcuts and displays text using them.</div>
		<pre class="ExSource">
pligate basic ;presets for curly quotes
pligate "--&gt;",0x2192 ;rightwards arrow
pligate "'",remove ;don't replace single apostrophe with curly quote

^``Check it out --&gt; it's my funky-cool shortcut example.''\
;assuming a font that contains all those glyphs, the previous text should display as:
;“Check it out → it's my funky-cool shortcut example.”</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pmapfont"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20090926</span> )
			</span>
		</span>
	</div>
	<div class="WordName">pmapfont</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>pmapfont NUM,STR[,STR]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Font slot (0-7)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font filename</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font metrics file (Type 1 fonts only)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Maps a font file to the given font slot.<br>
		For TrueType and OpenType fonts, the font file should be of type ".ttf" or ".otf"; for Type 1 fonts, the font file should be of type ".pfa" or ".pfb", with the metrics option providing the corresponding ".afm" file.<br>
		<br>
		Filenames are relative to the game's data path. If a file is not found there, it is then sought within a "fonts" subdirectory of the data path, then in the game's archive, and then in the game binary itself (in case the font has been embedded).<br>
		As a last resort, and for compatibility, Ponscripter checks for a file named "default.ttf" in the game's data path.<br>
		<br>
		The eight font slots are intended to represent two typefaces (a text face and a display face), each with regular, italic, bold, and bold-italic styles, as follows:<br>
		<span class="Indent"></span>slot <b>0</b> - text face, regular font<br>
		<span class="Indent"></span>slot <b>1</b> - text face, italics font<br>
		<span class="Indent"></span>slot <b>2</b> - text face, bold font<br>
		<span class="Indent"></span>slot <b>3</b> - text face, bold-italic font<br>
		<span class="Indent"></span>slot <b>4</b> - display face, regular font<br>
		<span class="Indent"></span>slot <b>5</b> - display face, italics font<br>
		<span class="Indent"></span>slot <b>6</b> - display face, bold font<br>
		<span class="Indent"></span>slot <b>7</b> - display face, bold-italic font<br>
		You can, of course, assign fonts however you like, but following this convention permits straightforward use of mnemonic formatting tags.<br>
		<br>
		Note that mapping fonts in this way is optional - a slot that has not had a font assigned to it via <b>pmapfont</b> will use the default filename "face<b>N</b>.ttf", where <b>N</b> is the slot number.
	</p>
	<div class="Example">
		<span class="ExHeading">PONScripter Example:</span>
		<br>
		<div class="ExComment">Maps font slot 0 to "myprettyfont.ttf".</div>
		<pre class="ExSource">pmapfont 0,"myprettyfont.ttf"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="prendering"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( PONS<span class="EngineVersion">20090926</span> )
			</span>
		</span>
	</div>
	<div class="WordName">prendering</div>
</h2><h4>
	<a href="#category_ponscr" class="WordCategory">PONScripter Commands</a>
</h4><h3>prendering {none|full|light},{integer|float}[,{light|normal}]</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Hinting (either none, full, or light)</span>
	<div class="Space"></div>
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Positioning (either integer or float)</span>
	<div class="Space"></div>
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">Optional Freetype rendering mode (light or normal)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Configures the Freetype text rendering mode.<br>
		<br>
		Hinting can be one of the following:<br>
		<span class="Indent"></span><b>none</b> - no hinting (default)<br>
		<span class="Indent"></span><b>full</b> - Freetype hinting<br>
		<span class="Indent"></span><b>light</b> - Light hinting<br>
		The optimum settings depend on the fonts in use.	In general, Freetype hinting makes TrueType fonts look hideous, but it does sometimes help with Type 1 fonts.<br>
		<br>
		Use the bareword <b>integer</b> for positioning - although <b>float</b> is available and uses subpixel positioning, which would in theory give better spacing, it has never worked properly and tends to look awful.<br>
		<br>
		The optional parameter can be used to override the Freetype rendering mode.	It should be one of the barewords <b>light</b> or <b>normal</b>.	By default, light rendering is used with light hinting, and normal rendering otherwise.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="pretextgosub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.46</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">pretextgosub</div>
</h2><h4>
	<a href="#category_tag" class="WordCategory">Pretext Tags</a>
</h4><h3>pretextgosub LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Label to jump to before a text command</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets a subroutine to jump to immediately before a display text command.<br>
		If this command is used, a script can use a "tag", or data enclosed within square brackets <b>[]</b>, immediately before any line of text.<br>
		For example, in the following code, the <b>[太郎/0001.wav]</b> is a tag:<br>
		<span class="Indent"></span><b>[太郎/0001.wav]テスト用の文章です。</b>
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Specifies that execution will jump to the *pretext_lb subroutine before each line of text</div>
		<pre class="ExSource">pretextgosub *pretext_lb</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Example pretextgosub routine</div>
		<pre class="ExSource">
pretextgosub *pretext_lb

*pretext_lb
dwavestop 0
gettag $0,$1
;assuming first item is person name, second is voice dialog file
if $0="" indent 0:goto *next_tag
mov $2,$0
add $2,"/"
puttext $2
;this displays "(Name)" right before the actual text
;the "/" is to keep puttext from adding a newline
indent 3
;indents text for character dialog
*next_tag
if $1="" return
dwave 0,$1
;play the voice file
return</pre>
	</div>
	<hr>
		<a href="#_squarebrackets">[]</a> / <a href="#gettag">gettag</a> / <a href="#indent">indent</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="print"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">print</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>print EFFECT</h3><div class="Arguments">
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Display effect</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Draws to the screen utilizing the designated effect.<br>
		<br>
		You may set the effect to use in one of two ways:<br>
		<span class="Indent"></span>1) By effect tag<br>
		<span class="Indent"></span><span class="Indent"></span>0: draws only to memory, not to screen<br>
		<span class="Indent"></span><span class="Indent"></span>1: instantaneous display<br>
		<span class="Indent"></span><span class="Indent"></span>&gt;1: the tag of an effect defined by the <b>effect</b> command<br>
		<br>
		<span class="Indent"></span>2) Direct designation<br>
		<span class="Indent"></span><span class="Indent"></span>2-18: Use the same parameters as used for the <b>effect</b> command<br>
		<span class="Indent"></span><span class="Indent"></span><b>99</b>: Use for plugin-based effects. You must provide a plugin specification string of format: "plugin-name/plugin-parameters".<br>
		<br>
		<br>
		The following display commands, like <b>print</b>, take effect specs:<br>
		<span class="Indent"></span><b>bg</b> <b>ld</b> <b>cl</b><br>
		<br>
		All other display-related commands must be followed by <b>print</b> or one of the above commands in order to update the screen display.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Plugin-based effect support was added in ver.2.03, and the effect plugin api was extended in ver.2.37. Only NScripter supports plugins.<br>
			At present, ONScripter-EN supports the following "plugin-based" wipe effects (originally created by Takashi Toyama), via emulation: "breakup.dll", "cascade.dll", "trvswave.dll", "whirl.dll". (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Display the background "test.jpg" and the standing picture "testman.jpg" simultaneously, then remove the standing picture using set effect 3.</div>
		<pre class="ExSource">
bg "test.jpg",0
ld c,"testman.jpg",1
cl c,3</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Display the background "test.jpg" via a one-second crossfade, then display the standing picture "testman.jpg" on the left side via a two-second masked fade using "mask.bmp".</div>
		<pre class="ExSource">
bg "test.jpg",10,1000
ld "testman.jpg",15,2000,"mask.bmp"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Display the background "test.jpg" via the plugin-effect "clockwip.dll".</div>
		<pre class="ExSource">bg "test.jpg",99,1000,"clockwip.dll/l"</pre>
	</div>
	<hr>
		<a href="#effect">effect</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="prnum"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">prnum</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>prnum NUM,NUM,NUM,NUM,NUM,NUM,COLOR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric label number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Current value</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Top-left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Character width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Character height</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Label color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a numeric value label, and then blits its current value in the given position at the given size and color.<br>
		A label can take 3 columns, so they can range from 0 to 999 in value.<br>
		You need to call a print command or something like it to actually display this onscreen.<br>
		<br>
		<b>bar</b> and <b>prnum</b> were specifically created for <b>mode_saya</b>, which was in-turn specifically created for the doujin game "Saya ~Labyrinth of Immorality~".<br>
		There are plans to replace these commands with something a little bit more generalized and powerful.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Deprecated since ver2.93; the behavior of this command is environment-dependent.</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="prnumclear"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">prnumclear</div>
</h2><h4>
	<a href="#category_var_bar" class="WordCategory">Character/Number/Bar Display</a>
</h4><h3>prnumclear</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Clears the numeric value labels.</p>
	<hr>
		<a href="#prnum">prnum</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="puttext"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">puttext</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>puttext STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to display</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Displays the given character string onscreen. This command is most often used within if statements to display some short indicator; otherwise its efficacy is limited.<br>
		When using <b>puttext</b>, you may not use any of the variable designation/value functions (e.g. <b>%</b> or <b>$</b>) with it.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="quake"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">quake</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>quake NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amplitude (pixels)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Duration (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Causes an onscreen random quake effect of the given amplitude and duration. Can be slow on older graphics cards.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This shakes the screen for 1 second with an 8-pixel amplitude.</div>
		<pre class="ExSource">quake 8,1000</pre>
	</div>
	<hr>
		<a href="#quakex">quakex</a> / <a href="#quakey">quakey</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="quakex"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">quakex</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>quakex NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amplitude (pixels)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Duration (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works just like <b>quake</b>, except it only shakes the screen from side-to-side (horizontally).
	</p>
	<hr>
		<a href="#quake">quake</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="quakey"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">quakey</div>
</h2><h4>
	<a href="#category_visualeffect" class="WordCategory">Visual Effects</a>
</h4><h3>quakey NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amplitude (pixels)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Duration (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works just like <b>quake</b>, except it only shakes the screen up-and-down (vertically).
	</p>
	<hr>
		<a href="#quake">quake</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="r_trap"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.55</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">r_trap</div>
</h2><h4>
	<a href="#category_trap" class="WordCategory">Click Traps</a>
</h4><h3>r_trap LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Destination for jump upon right-click</span>
	<div class="Space"></div>
</div><h3>r_trap off</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		After this command, a right-click will cause a jump to the specified label.<br>
		This trap mode deactivates itself immediately thereafter, or you can deactivate it manually (before the jump happens) by using <b>r_trap off</b>.<br>
		It behaves the same as <b>trap</b> and <b>lr_trap</b>, except that it only activates on right-clicks.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This command also reacts to left-clicks since ver2.75. (by senzogawa) -WHY? isn't that what <b>lr_trap</b> is for? (by Mion)
		</div>
	</div>
	<hr>
		<a href="#trap">trap</a> / <a href="#lr_trap">lr_trap</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="readfile"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.40</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">readfile</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>readfile $VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable for the file read result</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">A text filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Reads the contents of the given file into the given string variable.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Note that this also reads CRLF (\x0d\x0a) line endings; when writing multiple lines to a file that will be processed with <b>readfile</b>, these ending bytes must be skipped since relative operators cannot process CR or LF.<br>
			Also, since calling <b>readfile</b> does not affect the file log, <b>fchk</b> cannot be used to determine if the file was read.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Reads the contents of "file.txt" into $0.</div>
		<pre class="ExSource">readfile $0,"file.txt"</pre>
	</div>
	<hr>
		<a href="#split">split</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="repaint"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">repaint</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>repaint</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Repaints the screen. Call this command if you start getting strange artifacting and such onscreen.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="reset"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">reset</div>
</h2><h4>
	<a href="#category_startend" class="WordCategory">Game Start/End/Quit</a>
</h4><h3>reset</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Resets the game and returns to the start of the program block.</p>
	<hr>
		<a href="#_start-label">*start</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="resetmenu"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.98</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">resetmenu</div>
</h2><h4>
	<a href="#category_windowmenu" class="WordCategory">Window Menubar</a>
</h4><h3>resetmenu</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Declares creation of a custom menubar. Add menu items after this command using <b>insertmenu</b>.
	</p>
	<hr>
		<a href="#killmenu">killmenu</a> / <a href="#insertmenu">insertmenu</a> / <a href="#deletemenu">deletemenu</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="resettimer"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">resettimer</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>resettimer</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Sets the internal timer back to 0. This timer runs on a millisecond scale.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="return"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">return</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>return [LABEL]</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Optional return destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Used at the end of a routine called by <b>gosub</b> to return to the next command after the <b>gosub</b> call itself.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The optional return destination label was added in Ver.2.67. (by senzogawa)</div>
	</div>
	<hr>
		<a href="#gosub">gosub</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rgosub"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">rgosub</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>rgosub LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Destination to jump to upon right-click</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This sets a routine to call at right-clicks.<br>
		The given label will be called using a <b>gosub</b>, so that a <b>return</b> will go back to the waiting point where the right-click was detected.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The <b>systemcall</b> command doesn't work if rgosub is defined (by BBS)
		</div>
	</div>
	<hr>
		<a href="#rmenu">rmenu</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rlookback"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rlookback</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>rlookback</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Activate Log Mode by using a right click.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rmenu"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rmenu</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>rmenu STR,{skip,reset,save,load,lookback,windowerase}[,...]</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Right-click menu display string</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Right-click menu function name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Defines a system menu to show upon right-click.<br>
		The character string is menu item text, and the function is picked from the list defined below.<br>
		<br>
		SYSTEM MENU FUNCTION NAMES:<br>
		<b>skip</b> - same as "skip to next choice"<br>
		<b>reset</b> - reset program<br>
		<b>resetdlg</b> - same as <b>reset</b>?
		<b>save</b> - go to save menu<br>
		<b>load</b> - go to load menu<br>
		<b>lookback</b> - go to log mode<br>
		<b>windowerase</b> - remove text window<br>
		<b>end</b> - exit the program
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Display 3 elements in the right-click menu: "セーブ" for the Save menu function, "ロード" for the Load menu function, and "回想" for Log Mode.</div>
		<pre class="ExSource">rmenu "セーブ",save,"ロード",load,"回想",lookback</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rmode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rmode</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>rmode NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Right-click active toggle (0:off, 1:on)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Toggles right-click functionality on (1) or off (0).</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rnd"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rnd</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>rnd %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Upper range for the random number (0 to n-1)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Generates a random number and sticks it in the numerical variable, ranging from 0 to (number - 1).</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The command has no effect if 0 is given as the second number. (by senzogawa)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Get a random value from 0 to 99 and assign it to %5.</div>
		<pre class="ExSource">rnd %5,100</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rnd2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rnd2</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>rnd %VAR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Lower range for the random number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Upper range for the random number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Generates a random number ranging from number 1 to number 2.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Get a random value from 10 to 20 and assign it to %3.</div>
		<pre class="ExSource">rnd2 %3,10,20</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="roff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">roff</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>roff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Set default behavior of right-click as null/do nothing.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rubyoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.30</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rubyoff</div>
</h2><h4>
	<a href="#category_ruby" class="WordCategory">Ruby Text</a>
</h4><h3>rubyoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Turns off ruby mode, thereby disallowing ruby text.</p>
	<hr>
		<a href="#_parens">()</a> / <a href="#rubyon">rubyon</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rubyon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.30</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">rubyon</div>
</h2><h4>
	<a href="#category_ruby" class="WordCategory">Ruby Text</a>
</h4><h3>rubyon [NUM,NUM[,STR]]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Ruby char width (default: half of main text width)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Ruby char height (default: half of main text height)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Ruby text font name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Turns on ruby mode.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Enters ruby mode, using the set text font and half the set text sizes for displaying ruby text.</div>
		<pre class="ExSource">rubyon</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Enters ruby mode, using the set text font, width 10, and height 8 for displaying ruby text.	(It is probably best not to use ruby text bigger than 13x13, for anti-aliasing purposes.)</div>
		<pre class="ExSource">rubyon 10,8</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Enters ruby mode, using width 14, height 12, and Japanese font "MS Gothic" for displaying ruby text.</div>
		<pre class="ExSource">rubyon 14,12,"ＭＳ ゴシック"</pre>
	</div>
	<hr>
		<a href="#_parens">()</a> / <a href="#rubyoff">rubyoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="rubyon2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20100105</span> )
			</span>
		</span>
	</div>
	<div class="WordName">rubyon2</div>
</h2><h4>
	<a href="#category_ruby" class="WordCategory">Ruby Text</a>
</h4><h3>rubyon2 NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Ruby char width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Ruby char height</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This changes to ruby mode, but only when ruby appears in the current line. (Assumed to be used for quick-display modes; will also allow ruby text in <b>strsp</b> commands.)
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Please note that text may be shifted to make room for ruby text.</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Still not clear to me what this command's documentation means; for now, ONScr-EN recognizes this command but does no special handling. (by Mion)</div>
	</div>
	<hr>
		<a href="#rubyoff">rubyoff</a> / <a href="#rubyon">rubyon</a> / <a href="#strsp">strsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savedir"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">savedir</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>savedir STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Name of directory where save data will be stored</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">This specifies a folder to use for storing save data.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			When this command is used (in NScripter), only the file "envdata" will be stored in the same location as "nscr.exe".<br>
			Be sure the savedir exists beforehand.
		</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			ONScripter-EN and PONScripter already store game &amp; save data in a separate folder from the game; this location can be adjusted via the "-s" command line option.<br>
			This behavior is separate from the <b>savedir</b> command, which is used to specify a directory relative to the game/save folder (holding all but "envdata". (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets so that save data files will be stored in the folder "savedata".</div>
		<pre class="ExSource">savedir "savedata"</pre>
	</div>
	<hr>
		<a href="#savegame">savegame</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savefileexist"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savefileexist</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>savefileexist %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result numeric variable (0: doesn't exist, 1: exists)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Returns 1 if the savefile exists, 0 if it does not.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savegame"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savegame</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>savegame NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Saves the game under the given save number. This does not ask for confirmation, so be careful.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savegame2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.60</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savegame2</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>savegame2 NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile number</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String to store with the save</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Stores a particular character string with each save file; otherwise, it works the same as <b>savegame</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Along with Save Game 12, this stores the string "８月５日　ヒロインＡルート"</div>
		<pre class="ExSource">savegame2 12,"８月５日　ヒロインＡルート"</pre>
	</div>
	<div class="Example">
		<span class="ExHeading">ONScripter Example:</span>
		<br>
		<div class="ExComment">Along with Save Game 12, this stores the string "Aug. 5 -Heroine A route-"</div>
		<pre class="ExSource">savegame2 12,`Aug. 5 -Heroine A route-`</pre>
	</div>
	<hr>
		<a href="#savegame">savegame</a> / <a href="#getsavestr">getsavestr</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savename"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savename</div>
</h2><h4>
	<a href="#category_rclick" class="WordCategory">Right-Click Functionality</a>
</h4><h3>savename STR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Save menu title</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Load menu title</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Savefile line heading</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designates the display strings for savefiles.<br>
		From left to right, the strings are: title for the save menu, title for the load menu, and then the name of the save itself.<br>
		By default, these are "＜セーブ＞","＜ロード＞","しおり" -- note that these are all double-byte character strings.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">ONScripter-EN and PONScripter have the following for defaults: "Save", "Load", "Slot".</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savenumber"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savenumber</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>savenumber NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile capacity</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Change the limit on the number of save files. At most, this can be 20, and the default is 9.<br>
		If you are not careful to make sure that the save menu does not overflow the bottom of the screen (using <b>menusetwindow</b>), this command could cause the interpreter to hard crash.
	</p>
	<hr>
		<a href="#menusetwindow">menusetwindow</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="saveoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">saveoff</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>saveoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Turns Save Mode off.<br>
		This does not mean that you cannot save; it means that when you load, the position at which the player starts will be at the last place where <b>saveon</b> was set.<br>
		Why would you ever want to turn save mode off? When save mode is on, it records every sprite ever loaded into a log -- causing moderate to massive amounts of slowdown when you are attempting to do a fast animation. In these cases, you should definitely call <b>saveoff</b> before you start the animation, then call <b>saveon</b> once you've finished.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="saveon"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">saveon</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>saveon</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Turns Save Mode back on (also see <b>saveoff</b> for more details).
	</p>
	<hr>
		<a href="#saveoff">saveoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savepoint"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.93</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">savepoint</div>
</h2><h4>
	<a href="#category_saveload" class="WordCategory">Save/Load</a>
</h4><h3>savepoint</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Updates the save point.<br>
		Use this when the <b>autosaveoff</b> command is used in the define block.<br>
		Timing issues may slow down returns from data updates, for example when updating a save point after drawing over the entire screen, so please use common sense.
	</p>
	<hr>
		<a href="#autosaveoff">autosaveoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savescreenshot"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savescreenshot</div>
</h2><h4>
	<a href="#category_screenshot" class="WordCategory">Screenshot</a>
</h4><h3>savescreenshot STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Screenshot filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Saves a screenshot collected via <b>getscreenshot</b>.<br>
		This also deletes the screenshot image from memory; use <b>savescreenshot2</b> instead if you need to reuse the screenshot image.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Saves the last collected screenshot as "thumb01.bmp".</div>
		<pre class="ExSource">savescreenshot "thumb01.bmp"</pre>
	</div>
	<hr>
		<a href="#getscreenshot">getscreenshot</a> / <a href="#savescreenshot2">savescreenshot2</a> / <a href="#deletescreenshot">deletescreenshot</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savescreenshot2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.30</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savescreenshot2</div>
</h2><h4>
	<a href="#category_screenshot" class="WordCategory">Screenshot</a>
</h4><h3>savescreenshot2 STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Screenshot filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Saves a screenshot collected via <b>getscreenshot</b> as the given filename.<br>
		This does not delete the screenshot image from memory, so please use <b>deletescreenshot</b> to remove it from memory when finished.
	</p>
	<hr>
		<a href="#getscreenshot">getscreenshot</a> / <a href="#savescreenshot">savescreenshot</a> / <a href="#deletescreenshot">deletescreenshot</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="savetime"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">savetime</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>savetime NUM,%VAR,%VAR,%VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Savefile number</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the save month</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the save date</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the save hour</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the save minute</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Gets the month, day, hour of the day, and minutes of the hour in which a particular save was recorded.<br>
		If the save file does not exist, then the %month parameter is set to 0.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Retrieves the save time and date of savefile 3, or else explains that the savefile was not found.</div>
		<pre class="ExSource">
savetime 3,%0,%1,%2,%3
if %0=0 goto *non
;save found
セーブ３番は%0月%1日%2時%3分@
end
*non
;save not found
セーブ３番は存在しない。@
end</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="select"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">select</div>
</h2><h4>
	<a href="#category_select" class="WordCategory">Choices</a>
</h4><h3>select STR,LABEL[,STR,LABEL[,...]]</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Displayed choice</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Choice select destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Displays a selection of choices, and then jumps to the label associated with the selected choice.<br>
		If the character string is set to "", then that choice will not be displayed.<br>
		(This works the same way as <b>selnum</b> and <b>selgosub</b>.)<br>
		But be careful, as this command will cause the interpreter to hang if you do not specify even a single choice as a parameter.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="selectbtnwait"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">selectbtnwait</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>selectbtnwait %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for button number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Waits for a click during a <b>*customsel</b> routine.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Waits for a click and assigns the clicked button number to %0.</div>
		<pre class="ExSource">selectbtnwait %0</pre>
	</div>
	<hr>
		<a href="#csel">csel</a> / <a href="#_customsel-label">*customsel</a> / <a href="#getcselnum">getcselnum</a> / <a href="#cselgoto">cselgoto</a> / <a href="#getcselnum">getcselnum</a> / <a href="#getcselstr">getcselstr</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="selectcolor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">selectcolor</div>
</h2><h4>
	<a href="#category_select" class="WordCategory">Choices</a>
</h4><h3>selectcolor COLOR,COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Mouseover color</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Mouseoff color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Specifies, in order, the mouseover and the mouseoff colors for choice text.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="selectvoice"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">selectvoice</div>
</h2><h4>
	<a href="#category_select" class="WordCategory">Choices</a>
</h4><h3>selectvoice STR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV file that plays at choice dialog entry</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV file that plays upon mouseover of a choice</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV file that plays when a choice is clicked</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Designate WAV files to play in the choice dialog. From left to right: upon entry into choice dialog, upon mouseover of choice text, and finally upon clicking on a choice text.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="selgosub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">selgosub</div>
</h2><h4>
	<a href="#category_select" class="WordCategory">Choices</a>
</h4><h3>selgosub STR,LABEL[,STR,LABEL[,...]]</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Displayed choice</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Choice select destination</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works the same as <b>select</b>, except this command jumps to a subroutine, not a generalized label.
	</p>
	<hr>
		<a href="#select">select</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="selnum"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">selnum</div>
</h2><h4>
	<a href="#category_select" class="WordCategory">Choices</a>
</h4><h3>selnum %VAR,STR[,STR[,...]]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Displayed choice</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works somewhat like <b>select</b> and <b>selgosub</b>, except that there are no jumps - instead, depending on which character string is clicked, a number (starting at 0, then incrementing by 1 for each string) is loaded into the given numeric variable.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Unlike with <b>select</b> and <b>selgosub</b>, a null character string ("") can't be provided as a choice. (by senzogawa)
		</div>
	</div>
	<hr>
		<a href="#select">select</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="setcursor"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">setcursor</div>
</h2><h4>
	<a href="#category_cursor" class="WordCategory">Cursor</a>
</h4><h3>setcursor NUM,STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cursor number (0: click-wait cursor, 1: page-wait cursor)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Cursor image filename</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cursor horizontal displacement (right)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Cursor vertical displacement (down)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads and displays a cursor definition file for use during click wait states.<br>
		The numbers comprise an (x,y) coordinate positioned relative to the upper left pixel of the next text display character.<br>
		<br>
		The default settings are:<br>
		<span class="Indent"></span>setcursor 0,":l/3,160,2;cursor0.bmp",0,0<br>
		<span class="Indent"></span>setcursor 1,":l/3,160,2;cursor1.bmp",0,0
	</p>
	<hr>
		<a href="#abssetcursor">abssetcursor</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="setkinsoku"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.70</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">setkinsoku</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>addkinsoku STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String of characters forbidden at line start</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String of characters forbidden at line end</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Much as English has linebreak rules, Japanese defines certain characters as "kinsoku" - forbidden from either starting or ending a line of text (e.g. end/start quotes, parentheses, and other punctuation).<br>
		<br>
		This command specifies which (fullwidth) text characters will be treated as "kinsoku" for the purposes of text display: the first string contains characters forbidden at the start of a line, while the second string contains characters to be forbidden at the end of a line.<br>
		<br>
		The default kinsoku characters for NScripter are "」』）］｝、。，．・？！ヽヾゝゞ々ー" (start) and "「『（［｛" (end).
	</p>
	<hr>
		<a href="#addkinsoku">addkinsoku</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="setlayer"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20090411</span> )
			</span>
		</span>
	</div>
	<div class="WordName">setlayer</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>setlayer NUM,NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Layer number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Layer update interval (msec)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">DLL filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This registers a layer number for a particular plugin DLL.<br>
		Messages may be sent to the plugin via <b>layermessage</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">At present, ONScripter-EN supports the following "plugin-based" layer effects (originally created by Takashi Toyama), via emulation: "hana.dll", "oldmovie.dll", and "snow.dll". (by Mion)</div>
	</div>
	<hr>
		<a href="#layermessage">layermessage</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="setwindow"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">setwindow</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>setwindow NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,COLOR,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (full-width) text columns</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of text lines</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font size X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font size Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default text speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Window color</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window bottom right X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window bottom right Y-coordinate</span>
	<div class="Space"></div>
</div><h3>setwindow NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (full-width) text columns</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of text lines</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font size X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font size Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default text speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image file name</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left Y-coordinate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets up the text window.<br>
		The first form is used when the backdrop for the text window is an alpha-layered solid color.<br>
		The second form is used when the backdrop for the text window is a graphic file.<br>
		<br>
		By default, the text window takes up the full screen and is somewhat translucent, the font is 26x26 pixels, the spacing is 0,2, the top left coordinate is 8,16, there are 23 2-byte columns and 16 lines, boldface and drop shadow enabled, 20 speed, and a translucent color of #999999.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Text window with default settings</div>
		<pre class="ExSource">setwindow 8,16,20,23,26,26,0,2,20,1,1,#999999,0,0,639,479</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Text window with default settings, but using image file "bgi.bmp" as backdrop</div>
		<pre class="ExSource">setwindow 8,16,20,23,26,26,0,2,20,1,1,"bg1.bmp",0,0</pre>
	</div>
	<hr>
		<a href="#setwindow2">setwindow2</a> / <a href="#setwindow3">setwindow3</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="setwindow2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">setwindow2</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>setwindow2 COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Window color</span>
	<div class="Space"></div>
</div><h3>setwindow2 STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image file name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This modifies the appearance of the text window without deleting either it or the text backlog.<br>
		This command can only modify the color or image file that was first specified in setwindow, and none of the other parameters.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This modifies the text window to use image file "twindow2.bmp" as backdrop.</div>
		<pre class="ExSource">setwindow2 ":c;twindow2.bmp"</pre>
	</div>
	<hr>
		<a href="#setwindow">setwindow</a> / <a href="#setwindow3">setwindow3</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="setwindow3"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.30</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">setwindow3</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>setwindow3 NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,COLOR,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (full-width) text columns</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of text lines</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font size X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font size Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default text speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Window color</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window bottom right X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window bottom right Y-coordinate</span>
	<div class="Space"></div>
</div><h3>setwindow3 NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,STR,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of top left for text</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (full-width) text columns</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of text lines</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font size X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font size Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Default text speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image file name</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left Y-coordinate</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This behaves the same as <b>setwindow</b> but without clearing the Log mode buffer.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Entering Log Mode may be buggy if the text window isn't set to the same width and height.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets text window with default settings without clearing log</div>
		<pre class="ExSource">setwindow3 8,16,20,23,26,26,0,2,20,1,1,#999999,0,0,639,479</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets text window with default settings, but using image file "bgi.bmp" as backdrop, without clearing log</div>
		<pre class="ExSource">setwindow3 8,16,20,23,26,26,0,2,20,1,1,"bg1.bmp",0,0</pre>
	</div>
	<hr>
		<a href="#setwindow">setwindow</a> / <a href="#setwindow2">setwindow2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="sevol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.98</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">sevol</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>sevol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sound volume (0-100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Changes the sound volume.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Volume changes are not saved, so manage them manually or with variables.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets sound effect volume to maximum (100)</div>
		<pre class="ExSource">sevol 100</pre>
	</div>
	<hr>
		<a href="#chvol">chvol</a> / <a href="#mp3vol">mp3vol</a> / <a href="#voicevol">voicevol</a> / <a href="#bgmvol">bgmvol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="shadedistance"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">shadedistance</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>shadedistance NUM,NUM,[COLOR]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Shadow offset width (pixels)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Shadow offset height (pixels)</span>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Shadow colour</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Sets the text shadow position.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			NScr Ver.2.62 added this command to the program block as well.<br>
			The shadow position will not return to the default setting even at reset. (by senzogawa)
		</div>
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			ONScripter-RU supports optional colour parameter.
		</div>
		
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the text shadow offset to 2 pixels right and 3 pixels down</div>
		<pre class="ExSource">shadedistance 2,3</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="shell"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20080310</span>
			</span>, <span class="NoBr">
				PONS<span class="EngineVersion">20100324</span> )
			</span>
		</span>
	</div>
	<div class="WordName">shell</div>
</h2><h4>
	<a href="#category_execute" class="WordCategory">External Command Execution</a>
</h4><h3>shell STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Name of external file (or URL)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Executes the given file via Explorer, using the ShellExecute API.<br>
		Note that shell execution is asynchronous with the game engine.<br>
		<br>
		ONScripter-EN supports the <b>shell</b> command in Windows builds, and has basic support in Mac and Linux for using it to open a URL in the default web browser.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="sin"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">sin</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>sin %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Angle (in degrees)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Acquires the trigonometric sine of the given angle, and returns the value multiplied by 1000.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assigns the sine of 90 degrees to %0.</div>
		<pre class="ExSource">
sin %0,90
;%0=1000, since sin(90)=1</pre>
	</div>
	<hr>
		<a href="#cos">cos</a> / <a href="#tan">tan</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="skip"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">skip</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>skip NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of script lines to skip</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Skips the designated number of lines. Can skip forward (-) or backward (+).</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="skipoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">skipoff</div>
</h2><h4>
	<a href="#category_kidokuskip" class="WordCategory">Skip Mode</a>
</h4><h3>skipoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Exits both "skip to next choice" mode and "auto mode".</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			Skip Mode can be enabled with "systemcall skip".<br>
			So, using <b>defsub</b>, you can create a "skipon" command with the follow code. (by senzogawa)<br>
			*skipon<br>
			systemcall skip<br>
			return
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Exits any Skip Mode that may have been active.</div>
		<pre class="ExSource">skipoff</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="soundpressplgin"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">soundpressplgin</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>soundpressplgin STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Plugin specification</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Using this, you can designate a dll file with which to decode other kinds of compressed sound files that are not mp3s. The character string format is "plugin-name|3-char-file-extension".</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This specifies using "nbzplgin.dll" to open *.nbz sound files.</div>
		<pre class="ExSource">soundpressplgin "nbzplgin.dll|nbz"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="spbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">spbtn</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>spbtn NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Button number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Just like the <b>btn</b> command, except it sets up an image button using a sprite. It uses cell 0 as the graphic for the nonclicked state and cell 1 for the clicked state.<br>
		When the button is pressed during a <b>btnwait</b>, it returns the given button number as a value.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="spclclk"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">spclclk</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>spclclk</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Use this between <b>btndef</b> and <b>btnwait</b> commands.<br>
		This will cause a wait command to give the same return value on a pressed Spacebar as for a left-click in the same situation.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btnwait">btnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="spfont"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.99</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">spfont</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>spfont STR,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font name</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
</div><h3>spfont clear</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">clear: use font settings from setwindow</span>
	<div class="Space"></div>
</div><h3>spfont STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Font name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This sets the font to use for string sprites, e.g. ":s;名".<br>
		<b>spfont clear</b> reverts to using the font settings from <b>setwindow</b>.<br>
		<br>
		It's also possible to omit all but the first argument: <b>spfont</b> (font-name)<br>
		Doing so will have string sprites use the given font face but all other settings will come from <b>setwindow</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This command was allowed in the program block since ver2.62.<br>
			Ver2.66 corrected bugs with using <b>spfont</b> and <b>setwindow</b> settings.<br>
			The "clear" option was added in ver2.67.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Change the string sprite font to (JP) MS Gothic, 16x16, no spacing, bold &amp; drop-shadowed.</div>
		<pre class="ExSource">spfont "ＭＳ ゴシック",16,16,0,0,1,1</pre>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Revert to the font settings of setwindow for string sprites.</div>
		<pre class="ExSource">spfont clear</pre>
	</div>
	<hr>
		<a href="#lsp">lsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="spi"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">spi</div>
</h2><h4>
	<a href="#category_plugin_archive" class="WordCategory">Plugins/Archives</a>
</h4><h3>spi STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Plugin specification</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Allows for utilization of image compression plugin dll's - image filetypes that are not supported in standard NScripter. The character string format is "plugin-dll-name|file-extension".</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This specifies using "jpgplgin.dll" to open *.jpg files, and "iflf2.spi" to open *.lf2 files.</div>
		<pre class="ExSource">
spi "jpgplgin.dll|jpg"
spi "iflf2.spi|lf2"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="split"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.40</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">split</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>split STR,STR,$VAR|%VAR,$VAR|%VAR[,...]</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Character string to split</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Delimiter (must be just one character)</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result variable</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Splits the given string at each occurrence of the given delimiter, and assigns the resulting portions to the given variables.<br>
		Use this command to process the results returned by <b>readfile</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			If a variable is repeated, its final result will be the last value portion assigned to it. (by eijipou)<br>
			If the string cannot be split (i.e. the delimiter never occurs), then numeric variables will be assigned the value 0 and string variables will receive the entire "split" string. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Splits $0 at every occurrence of "/", assigning the results to $1, $2, %0, %1, and $3.</div>
		<pre class="ExSource">
mov $0,"あいうえお/かきくけこ/15/25/さしすせそ"
split $0,"/",$1,$2,%0,%1,$3

＄１＝$1 ; あいうえお
＄２＝$2 ; かきくけこ
％０＝%0 ; 15
％１＝%1 ; 25
＄３＝$3 ; さしすせそ
			\</pre>
	</div>
	<hr>
		<a href="#readfile">readfile</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="spstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">spstr</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>spstr STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">sprite control string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		You can use this command to manually control sprites using the control string format of the <b>exbtn</b> command.<br>
		<br>
		Just like with <b>csp</b>, <b>lsp</b> and <b>vsp</b>, you need to call <b>print</b> afterwards to have anything show up on screen.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Clears Sprite 11, displays cell 2 of Sprite 10, and displays Sprite 9.</div>
		<pre class="ExSource">spstr "C11P10,2P9"</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="spwait"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.1.97</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">spwait</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>spwait NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Waits for the animation of the given sprite number to be either finished or cut short by the user.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Waits for the animation of Sprite 0 to finish.</div>
		<pre class="ExSource">spwait 0</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="stop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">stop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>stop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Stop playback of <b>all</b> sound.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Here, "all sound" means bgm and wave playback, but not loopbgm or dwave playback. (by Mion)</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="stralias"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">stralias</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>stralias NAME,STR</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Alias name</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">String value given by alias</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Makes an alias for the given character string as then given name - in other words, after this declaration, you can refer to that character string using that NAME in all cases.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Use an alias "man_a0" for the file ":a/10,20,2;man_alpha.bmp".</div>
		<pre class="ExSource">
stralias man_a0,":a/10,20,2;man_alpha.bmp"
;Now the following 2 lines are equivalent.
ld c,man_a0,1
ld c,":a/10,20,2;man_alpha.bmp",1</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="strsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.62</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">strsp</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>strsp NUM,STR,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM[,COLOR[,...]]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">String of text to render as a sprite</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate of top left</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of top left</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (full-width) text columns</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of text lines</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Optional color(s)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This creates a multi-line string sprite, using the font face specified by <b>spfont</b>.<br>
		Use "\" to move to the next line. Note that text will run to the end of the available columns and continue onto the next line, without using linebreak or kinsoku conventions, so the "\" are necessary for proper string display.<br>
		If optional colors are provided, then the sprite will have a cell for each given color, with the text in that color.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This command was originally an alias of <b>logsp2</b>, but was given its own specification in ver2.65.
		</div>
	</div>
	<hr>
		<a href="#spfont">spfont</a> / <a href="#strsph">strsph</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="strsph"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.81</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">strsph</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>strsph NUM,STR,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM[,COLOR[,...]]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">String of text to render as a sprite</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">X-coordinate of top left</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of top left</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of (full-width) text columns</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Number of text lines</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">(Full-width) text font width</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text font height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing X</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Text spacing Y</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Boldface toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Drop shadow toggle (0=off/1=on)</span>
	<div class="Space"></div>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Optional color(s)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works the same as <b>strsp</b>, except that the sprite starts out hidden.
	</p>
	<hr>
		<a href="#spfont">spfont</a> / <a href="#strsp">strsp</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="sub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">sub</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>sub %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Numeric value to subtract</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Subtract a number from a numeric variable.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Subtract 6 from %0, then subtract the value of %2.</div>
		<pre class="ExSource">
sub %0,6
sub %0,%2</pre>
	</div>
	<hr>
		<a href="#add">add</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="systemcall"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">systemcall</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>systemcall NAME</h3><div class="Arguments">
	<span class="ArgType">NAME</span>
	<span class="ArgMeaning">Menu function name</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Works identically to the system menu functions.<br>
		The available function names are similar to the ones used by <b>rmenu</b>:<br>
		SYSTEMCALL MENU FUNCTION NAMES:<br>
		<b>skip</b> - same as "skip to next choice"<br>
		<b>reset</b> - reset program<br>
		<b>resetdlg</b> - same as <b>reset</b>?<br>
		<b>save</b> - go to save menu<br>
		<b>load</b> - go to load menu<br>
		<b>lookback</b> - go to log mode<br>
		<b>windowerase</b> - remove text window<br>
		<b>automode</b> - automatically advance text at each clickwait (delay time set by <b>automode_time</b>)<br>
		<b>rmenu</b> - opens the right-click menu<br>
		<br>
		If you use <b>systemcall</b> in routines like <b>select</b>/<b>selgosub</b>, then you'll end up with something not very different from the title menu.<br>
		(In that case, it would probably be better to temporarily toggle off right-click menu functionality through <b>rmode</b>.)<br>
		<br>
		Calling <b>systemcall rmenu</b> has the same effect as calling the right-click menu itself.<br>
		You'd use this when you wanted right-click menu functionality during a button wait state. Once you exit this right-click menu, the interpreter continues its execution at the command after <b>systemcall</b>.<br>
		(This can leave the screen and the interpreter stack in an inconsistent state, so be careful when using this command.)
	</p>
	<hr>
		<a href="#rmenu">rmenu</a> / <a href="#automode">automode</a> / <a href="#automode_time">automode_time</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="tablegoto"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">tablegoto</div>
</h2><h4>
	<a href="#category_jump" class="WordCategory">Jumps</a>
</h4><h3>tablegoto %VAR,LABEL[,LABEL[,...]]</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable with an index into the jumptable</span>
	<div class="Space"></div>
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">A jump destination label within the table</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Creates a jump table.<br>
		If the variable is set to 0, it jumps to the first label; if 1, the second label; and so forth.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Jumps to one of *label0 - *label3, depending on the value of %0</div>
		<pre class="ExSource">tablegoto %0,*label0,*label1,*label2,*label3</pre>
	</div>
	<hr>
		<a href="#goto">goto</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="tal"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">tal</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>tal {l,c,r},NUM,EFFECT</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">standing pic position (l: left, c: center, r: right)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect for changing standing picture opacity</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Changes the opacity of the specified standing picture to the given value: 0 is fully transparent, 255 is fully opaque.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">The official manual omits the effect specification, which causes an error. (by senzogawa via "hau")</div>
	</div>
	<hr>
		<a href="#ld">ld</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="tan"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">tan</div>
</h2><h4>
	<a href="#category_calc" class="WordCategory">Variable Manipulation/Calculations</a>
</h4><h3>tan %VAR,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric result variable</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Angle (in degrees)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Acquires the trigonometric tangent of the given angle, and returns the value multiplied by 1000.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Please note that tan will return infinity if given values 90 and 270.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Assigns the tangent of 45 degrees to %2.</div>
		<pre class="ExSource">
tan %2,45
;%2=1000, since tan(45)=1</pre>
	</div>
	<hr>
		<a href="#sin">sin</a> / <a href="#cos">cos</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="tateyoko"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.03</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">tateyoko</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>tateyoko NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Flag (1: vertical text mode, 0: horizontal text mode)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Toggles vertical text display mode. See sample for details.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets vertical text display mode</div>
		<pre class="ExSource">tateyoko 1</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="texec"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">texec</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>texec</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Does text removal for a page-wait (within a <b>textgosub</b> routine). Also does line-feeds after regular clickwaits as applicable.
	</p>
	<hr>
		<a href="#textgosub">textgosub</a> / <a href="#textbtnwait">textbtnwait</a> / <a href="#getcursorpos">getcursorpos</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="texec2"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.82</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">texec2</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>texec2</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Similar to <b>texec</b>, except that it does not remove text immediately - only once the following line is displayed.<br>
		(This is used to prevent erasing text at choices.)
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Available since 2008/08/10 release</div>
	</div>
	<hr>
		<a href="#textgosub">textgosub</a> / <a href="#textbtnwait">textbtnwait</a> / <a href="#texec">texec</a> / <a href="#getcursorpos">getcursorpos</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textbtnoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.74</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">textbtnoff</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>textbtnoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Textbuttons are usually active during a <b>btnwait</b>.<br>
		Using <b>textbtnoff</b> between <b>btndef</b> and <b>btnwait</b> commands will turn off text buttons during the wait.<br>
		This can be useful if, for example, textbuttons need to be off while other buttons are processed.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Inactivates buttons and textbuttons before waiting for user input.</div>
		<pre class="ExSource">
btndef clear
textbtnoff
textbtnwait %0</pre>
	</div>
	<hr>
		<a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#textbtnwait">textbtnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textbtnstart"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.65</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">textbtnstart</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>textbtnstart NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Starting number for unnumbered textbuttons (default: 1)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Specifies the starting number for unnumbered textbuttons; 1 is the default value.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the starting number for unnumbered textbuttons to 3.</div>
		<pre class="ExSource">textbtnstart 3</pre>
	</div>
	<hr>
		<a href="#_anglebrackets">&lt;&gt;</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textbtnwait"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">textbtnwait</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>textbtnwait %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for button number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Waits for a click during a custom wait routine, as defined by <b>textgosub</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Waits for a click and assigns the clicked button number to %0.</div>
		<pre class="ExSource">textbtnwait %0</pre>
	</div>
	<hr>
		<a href="#textgosub">textgosub</a> / <a href="#texec">texec</a> / <a href="#getcursorpos">getcursorpos</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textclear"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">textclear</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>textclear</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Remove the contents of the text window, but not the window itself.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textcolor"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.82</span> )
			</span>
		</span>
	</div>
	<div class="WordName">textcolor</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>textcolor COLOR</h3><div class="Arguments">
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Color to use for text</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the color of the text, using HTML hexadecimal color codes (e.g. #000000 for black, #ffffff for white, and #ffffaa for pale yellow).<br>
		Please note that it only changes the color of text displayed after this command, and not any of the text that came before.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This seems to have been added in the 2007/11/04 release. You must use this command to change text color if <b>english</b> mode is enabled. (by senzogawa)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Displays the text "blue font" in blue.</div>
		<pre class="ExSource">
*define
english
game
*start
textcolor #0000ff
&gt;blue font@
end</pre>
	</div>
	<hr>
		<a href="#english">english</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textexbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.65</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">textexbtn</div>
</h2><h4>
	<a href="#category_textbutton" class="WordCategory">Text Buttons</a>
</h4><h3>textexbtn NUM,STR</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Textbutton number</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Sprite control string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Adds complex behavior to a textbutton, in much the same manner as <b>exbtn</b>.
	</p>
	<hr>
		<a href="#exbtn">exbtn</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textfield"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.49</span>
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">textfield</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>textfield $VAR,NUM,NUM,NUM,NUM,NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable that stores both the default and input result strings</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window top left Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window bottom right X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Window bottom right Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Character width (single-byte)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Character height</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Double-byte text (0: allow half-width, 1: full-width only)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This creates a text input window on the screen (not a dialog box) and waits for input.<br>
		The prior contents of the given string variable will be used as the default text.<br>
		Input is returned by hitting the Escape, Tab or Enter keys, or by left-clicking on-screen outside the textfield area.<br>
		To see if the Tab key was pressed, use <b>getret %0</b><br>
		If %0 is 0, then Tab was not pressed, but if %0 is 1 then the Tab key was pressed to return input.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Produces a text input area within (100,50) to (320,70) that takes 10x20 (half-width) characters, with forced full-width input.</div>
		<pre class="ExSource">textfield $0,100,50,320,70,10,20,1</pre>
	</div>
	<hr>
		<a href="#input">input</a> / <a href="#inputstr">inputstr</a> / <a href="#inputnum">inputnum</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textgosub"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">textgosub</div>
</h2><h4>
	<a href="#category_systemcustomize" class="WordCategory">System Customization</a>
</h4><h3>textgosub LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Label called at clickwaits</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Defines a label to jump to at click waits for system customization. The routine named by this label must handle all system menus, cursors, buttons, and user input during these wait states.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets to jump to "*text_1b" at clickwaits.</div>
		<pre class="ExSource">textgosub *text_lb</pre>
	</div>
	<hr>
		<a href="#textbtnwait">textbtnwait</a> / <a href="#texec">texec</a> / <a href="#getcursorpos">getcursorpos</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="texthide"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">texthide</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>texthide</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Hides the textwindow text, while leaving the window itself in place.<br>
		This is important for customized Log Mode display.
	</p>
	<hr>
		<a href="#textshow">textshow</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textoff"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">textoff</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>textoff</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Hide the text window.</p>
	<hr>
		<a href="#texton">texton</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="texton"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">texton</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>texton</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Unhide/show the text window.</p>
	<hr>
		<a href="#textoff">textoff</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textshow"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">textshow</div>
</h2><h4>
	<a href="#category_logcustomize" class="WordCategory">Log Mode Customization</a>
</h4><h3>textshow</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Redisplays text that had been hidden with <b>texthide</b>.
	</p>
	<hr>
		<a href="#texthide">texthide</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textspeed"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">textspeed</div>
</h2><h4>
	<a href="#category_drawtext" class="WordCategory">Text Display</a>
</h4><h3>textspeed NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Character display speed (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes the text display speed.<br>
		This has the same functionality as <b>!s</b>, except that you can specify a variable here.
	</p>
	<hr>
		<a href="#_bang-s">!s</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="textspeeddefault"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.47</span>
			</span>, <span class="NoBr">ONScr-EN )</span>
		</span>
	</div>
	<div class="WordName">textspeeddefault</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>textspeeddefault</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Sets text display speed to the default.<br>
		Same as <b>!sd</b>, this command is especially meant for use in <b>english</b> mode.
	</p>
	<hr>
		<a href="#_bang-sd">!sd</a> / <a href="#english">english</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="time"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">time</div>
</h2><h4>
	<a href="#category_getinfo" class="WordCategory">Data Acquisition</a>
</h4><h3>time %VAR,%VAR,%VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the retrieved hour</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the retrieved minute</span>
	<div class="Space"></div>
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Numeric variable for the retrieved second</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Retrieves the current time.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="transbtn"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20091122</span> )
			</span>
		</span>
	</div>
	<div class="WordName">transbtn</div>
</h2><h4>
	<a href="#category_button" class="WordCategory">Image Buttons</a>
</h4><h3>transbtn</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This will prevent transparent areas of a button image from activating the button.<br>
		Please use this command after a <b>btndef</b> but before the <b>btnwait</b> command.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btnwait">btnwait</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="transmode"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">transmode</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>transmode {leftup,copy,alpha}</h3><div class="Arguments">
	<span class="ArgType">ENUM</span>
	<span class="ArgMeaning">leftup: top-left pixel color, copy: no transparency, alpha: alpha-blend</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Change the default transparency mode. <b>leftup</b> is the default setting.<br>
		This essentially makes any image-definition string without a transparency setting use "l" for leftup, "c" for copy, or "a" for alpha; see <b>lsp</b> for more details.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="trap"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">trap</div>
</h2><h4>
	<a href="#category_trap" class="WordCategory">Click Traps</a>
</h4><h3>trap LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Destination for jump upon left-click</span>
	<div class="Space"></div>
</div><h3>trap off</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		After this command, a left-click will cause a jump to the specified label.<br>
		This trap mode deactivates itself immediately thereafter, or you can deactivate it manually (before the jump happens) by using <b>trap off</b>.
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="trap2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">trap2</div>
</h2><h4>
	<a href="#category_trap" class="WordCategory">Click Traps</a>
</h4><h3>trap2 LABEL</h3><div class="Arguments">
	<span class="ArgType">LABEL</span>
	<span class="ArgMeaning">Destination for jump upon left-click during skip mode</span>
	<div class="Space"></div>
</div><h3>trap2 off</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		This is the same as <b>trap</b>, except it is the one that should be used when "skip to next choice" mode is active.
	</p>
	<hr>
		<a href="#trap">trap</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="underline"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">underline</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>underline NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Y-coordinate of ground line</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Specifies the ground line for standing pictures. The default value is 479.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">This command was allowed in the program block since ver2.92.</div>
	</div>
	<hr>
		<a href="#ld">ld</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="useescspc"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.99</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">useescspc</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>useescspc</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Sets <b>btnwait</b> commands to detect when the Esc key or Spacebar is pressed.<br>
		The wait command will return -10 on Esc, -11 on Space.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#usewheel">usewheel</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="usewheel"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.97</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">usewheel</div>
</h2><h4>
	<a href="#category_input" class="WordCategory">Button Extensions</a>
</h4><h3>usewheel</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Sets <b>btnwait</b> commands to detect mouse wheel movement.<br>
		The wait command will return -2 on wheel up, -3 on wheel down.<br>
		Please note that, when <b>usewheel</b> is in effect, a button wait timeout (set by <b>btntime</b>) will return -5 instead of the usual -2.
	</p>
	<hr>
		<a href="#btndef">btndef</a> / <a href="#btntime">btntime</a> / <a href="#btntime2">btntime2</a> / <a href="#btnwait">btnwait</a> / <a href="#btnwait2">btnwait2</a> / <a href="#spclclk">spclclk</a> / <a href="#useescspc">useescspc</a> / <a href="#getcursor">getcursor</a> / <a href="#getenter">getenter</a> / <a href="#gettab">gettab</a> / <a href="#getfunction">getfunction</a> / <a href="#getpage">getpage</a> / <a href="#getinsert">getinsert</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="v"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">v</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>'v'NUM':'</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Voice file number</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		This is a shorthand command for playing voice files.<br>
		It is equivalent to <b>wave "voice\(num).wav"</b>.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			(p)onscr seem to map this command to <b>wave "wav\(num).wav"</b> instead. (by Mion)
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This plays "voice\0001.wav" via the wave command before outputting text.</div>
		<pre class="ExSource">v0001:「これが０００１番のせりふだよー」</pre>
	</div>
	<hr>
		<a href="#wave">wave</a> / <a href="#dv">dv</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="value"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Reserved Syntax]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">value</div>
</h2><h4>
	<a href="#category_specialmode" class="WordCategory">Special Mode Settings</a>
</h4><h3>';value'NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Global variable start boundary (0 - 4000)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		If a script file has ";value500" as the first line, then this will set the starting number for global variables to 500.<br>
		To also change the window size mode, say to 800x600, use ";mode800,value500" as the first line of the script.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">If you use ";mode640,value500" as the first line of a script, then since ";mode640" is not a valid directive, the "value" setting will also be ignored. (by BBS)</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets the starting global variable number to 500.</div>
		<pre class="ExSource">
;value500
*define</pre>
	</div>
	<hr>
		<a href="#mode800">mode800</a> / <a href="#mode400">mode400</a> / <a href="#mode320">mode320</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="versionstr"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">versionstr</div>
</h2><h4>
	<a href="#category_information" class="WordCategory">Console</a>
</h4><h3>versionstr STR,STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">First line of version string</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Second line of version string</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Designates version strings to display in the "about" dialog. The first string is the first line, the second string is the second line.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="voicevol"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">1.98</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">voicevol</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>voicevol NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sound volume (0-100)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Changes the sound volume for voices.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">Volume changes are not saved, so manage them manually or with variables.</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets voice volume to maximum (100)</div>
		<pre class="ExSource">voicevol 100</pre>
	</div>
	<hr>
		<a href="#chvol">chvol</a> / <a href="#mp3vol">mp3vol</a> / <a href="#sevol">sevol</a> / <a href="#bgmvol">bgmvol</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="vsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">vsp</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>vsp NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number (0 - 999)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">visibility flag (0: not visible, 1: visible)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Toggles display of specified sprite. 0 is off, 1 is on.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="vsp2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.80</span>
			</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">vsp2</div>
</h2><h4>
	<a href="#category_sprite_ex" class="WordCategory">Extended Sprites</a>
</h4><h3>vsp2 NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">visibility flag (0: not visible, 1: visible)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Toggles display of specified extended sprite. 0 is off, 1 is on.</p>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#csp2">csp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="wait"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">wait</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>wait NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amount of time to wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Causes a delay of specified time (in milliseconds) that may not be escaped out of by clicking.<br>
		This works the same as the special text command '!w', but here you can supply a variable as the argument.
	</p>
	<hr>
		<a href="#_bang-w">!w</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="waittimer"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">waittimer</div>
</h2><h4>
	<a href="#category_wait_timer" class="WordCategory">Wait/Timer</a>
</h4><h3>waittimer NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Time-value to wait for on the internal timer (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Waits until the internal timer has passed the specified time before proceeding.<br>
		This command is the single most accurate timing measure in all of NScripter.<br>
		The timing intervals of things like image effect runtimes are not nearly this accurate, so be careful when you mix and match timing methods.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			It may be necessary to do <b>wait 0</b> in cases where sprite animation stalls due a mismatch with the internal timer. (by BBS)
		</div>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="wave"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">wave</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>wave STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays the specified WAV file.<br>
		<b>wave</b> plays it once, while <b>waveloop</b> loops it.
	</p>
	<hr>
		<a href="#wavestop">wavestop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="waveloop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">waveloop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>waveloop STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">WAV filename</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Plays the specified WAV file.<br>
		<b>wave</b> plays it once, while <b>waveloop</b> loops it.
	</p>
	<hr>
		<a href="#wavestop">wavestop</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="wavestop"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">wavestop</div>
</h2><h4>
	<a href="#category_sound" class="WordCategory">Music/SFX Playback</a>
</h4><h3>wavestop</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Stops WAV file playback.</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="windowback"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">windowback</div>
</h2><h4>
	<a href="#category_image" class="WordCategory">Image Display</a>
</h4><h3>windowback</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">Inserts the text window at the same level as standing pictures. Can be used for a 'positional subtitle' effect.</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			The text window is drawn on top of the standing image layer, which is drawn on top of the sprite at <b>humanz</b> level. Meanwhile, sprites with number less than the <b>humanz</b> value will appear on top of the text window. (by senzogawa)
		</div>
	</div>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			In reality, NScr draws the sprite at <b>humanz</b> level above the text window, which is above the standing image layer.<br>
			ONScripter-EN draws the sprite with <b>humanz</b> number between the text window and standing image layers when <b>windowback</b> is in effect; this allows placement of a graphic covering the images but under the text. (by Mion)
		</div>
	</div>
	<hr>
		<a href="#humanz">humanz</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="windowchip"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.25</span>
			</span>, <span class="NoBr">
				ONScr<span class="EngineVersion">20080121</span>
			</span>, <span class="NoBr">
				ONScr-EN<span class="EngineVersion">20080310</span> )
			</span>
		</span>
	</div>
	<div class="WordName">windowchip</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>windowchip NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number to show with the text window</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Attaches the given sprite to the text window, so it displays and disappears when the window does.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Sets Sprite 2 to display with the text window.</div>
		<pre class="ExSource">windowchip 2</pre>
	</div>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="windoweffect"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr</span>, <span class="NoBr">ONScr</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">windoweffect</div>
</h2><h4>
	<a href="#category_textwindow" class="WordCategory">Text Window</a>
</h4><h3>windoweffect EFFECT</h3><div class="Arguments">
	<span class="ArgType">EFFECT</span>
	<span class="ArgMeaning">Effect specification</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Sets an effect to use when the text window is hidden or unhidden. The parameters are identical to <b>effect</b>, except that there's no effect number parameter here.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">This sets the window effect to do cross-fade for 1 second.</div>
		<pre class="ExSource">windoweffect 10,1000</pre>
	</div>
	<hr>
		<a href="#effect">effect</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="winexec"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">winexec</div>
</h2><h4>
	<a href="#category_execute" class="WordCategory">External Command Execution</a>
</h4><h3>winexec STR,NUM</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Execution file name</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Synchronization flag (0: asynchronous, !=0: synchronous)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Executes the given external program using the WinExec API.<br>
		If NScr is in full-screen mode, the call to WinExec will use display option SW_MAXIMIZE, while in windowed mode, it will use SW_SHOWNORMAL.<br>
		For any sync-flag value other than 0, the external program will run synchronously with NScr.<br>
		The executed program will send WM_USER+10 to the NScripter window if it restarted, and WM_USER+20 if the program ended.<br>
		This command is used to launch a demo program in "Dolls Antique".
	</p>
	<hr>
		<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="yesnobox"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.2.47</span>
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">( NScr )</span>
		</span>
	</div>
	<div class="WordName">yesnobox</div>
</h2><h4>
	<a href="#category_additional" class="WordCategory">Miscellaneous</a>
</h4><h3>yesnobox %VAR,STR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">Result: 1 for Yes, 0 for No</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Message to display</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Dialog box title</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">Shows a Windows Yes/No dialog box and retrieves user input.</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Creates Yes/No dialog titled "ロード確認" (Confirm Load) with the message "ロードしますか？" (Perform Load?).</div>
		<pre class="ExSource">yesnobox %0,"ロードしますか？","ロード確認"</pre>
	</div>
	<hr>
		<a href="#okcancelbox">okcancelbox</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="zenkakko"></a><h2>
	<div class="Support">
		<span class="WordVersion">Ver.(undoc)</span>
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				( NScr<span class="EngineVersion">2.49</span>
			</span>, <span class="NoBr">
				ONScr<span class="EngineVersion">20050504</span>
			</span>, <span class="NoBr">ONScr-EN</span>, <span class="NoBr">PONS )</span>
		</span>
	</div>
	<div class="WordName">zenkakko</div>
</h2><h4>
	<a href="#category_tag" class="WordCategory">Pretext Tags</a>
</h4><h3>zenkakko</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Enables use of 【】 (fullwidth black lenticular brackets) for pretext tag specifications, in addition to the standard <b>[]</b> brackets.
	</p>
	<div class="Notice">
		<div class="NoticeHead">
			<b>*</b>
		</div>
		<div class="NoticeBody">
			This feature appears to be unsupported in the latest release (ver2.95), as NScr crashes when it reaches the 【】. Seems to work fine up through ver2.82. (by senzogawa)<br>
			Note that, although the brackets may be fullwidth, tag elements are still separated by standard <b>/</b> slashes.
		</div>
	</div>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Uses fullwidth brackets for pretext tag specification.</div>
		<pre class="ExSource">
*define
pretextgosub *pretextproc
zenkakko
game
*start
【名前/音声】「せりふ」
click
end

*pretextproc
gettag $0,$1
mesbox $0,$1 ; 題名が"音声"、本文が"名前"のダイアログを表示
return</pre>
	</div>
<hr>
<a href="#gettag">gettag</a> / <a href="#pretextgosub">pretextgosub</a> / <a href="#_squarebrackets">[]</a> / 
<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="ibx"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Special Text Command]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">{tags}</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>'{Command':Some text here'}'</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Applies various font styles.<br>
		b - bold<br>
		i - italics<br>
		x - both (bold-italics)<br>
		u - underline (not supported yet)<br>
		p:number - use custom preset<br>
		f:number - change font<br>
		o:number - outline size (border size)<br>
		s:number:number - shadow distance (x;y)<br>
		c:color - font colour (c:color)<br>
		z:color - shadow colour<br>
		r:color - border colour
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Usage example:</div>
		<pre class="ExSource">
*define
game
*start
`Some {bBold} text is followed by the text in {iitalics}.`\
end
</pre>
	</div>
<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="disablespeedbuttons"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">disablespeedbuttons</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>disablespeedbuttons</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Disables text speed hotkeys (0,1,2,3).
	</p>
<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="enable_custom_cursors"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">enable_custom_cursors</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>enable_custom_cursors</h3><div class="Arguments"></div><div class="ContentBody">
	<p class="Description">
		Disables automatic surface refresh near the cursor area.
	</p>
<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="borderstyle"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">borderstyle</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>debug_string NUM[,COLOR]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Border size</span>
	<span class="ArgType">COLOR</span>
	<span class="ArgMeaning">Border color</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Change border style parameters.
	</p>
	<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="debug_string"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">debug_string</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>debug_string STR</h3><div class="Arguments">
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">The string to be written to stderr</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Write a string (variable) to stderr.
	</p>
	<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="movs"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">movs</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>movs $VAR,STR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">String variable</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">LF - \n, QT - "</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Fills the variable with a special symbol.
	</p>
	<hr><a href="#mov">mov</a><hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="setdefaultspeed"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">setdefaultspeed</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>setdefaultspeed NUM,NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Slow text display speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Medium text display speed</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Fast text display speed</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Designate text speeds (character delays, in msec) to use when the interpreter encounters textspeeddefault or the special text command !sd.
	</p>
<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="timestamp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">timestamp</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>timestamp %VAR</h3><div class="Arguments">
	<span class="ArgType">VAR</span>
	<span class="ArgMeaning">A numeric variable for a timestamp</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Return current timestamp in seconds.
	</p>
<hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="wait2"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Definition/Program Block]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">wait2</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>wait2 NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Amount of time to wait (msec)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Causes a delay of specified time (in milliseconds) which cannot be skipped by the user.
	</p>
<hr><a href="#wait">wait</a><hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div><a id="lsp2mul"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">lsp2mul</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>lsp2mul NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads an extended sprite using with multiply blending.<br>
		<b>lsp2mul</b> uses multiply blending for display, but otherwise it works the same as <b>lsp2</b>.
	</p>
	<div class="Example">
		<span class="ExHeading"> Example:</span>
		<br>
		<div class="ExComment">Loads the image "test.bmp" and displays without transparency using multiple blending, centered at (320,240), expanded to 200% vertically, and rotated 36 degrees counterclockwise.</div>
		<pre class="ExSource">lsp2mul 0,":c;test.bmp",320,240,100,200,36</pre>
	</div>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#lsph2sub">lsph2sub</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="lsph2mul"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">lsph2mul</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>lsph2mul NUM,STR,NUM,NUM,NUM,NUM,NUM[,NUM]</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Extended-sprite number (0 - 255)</span>
	<div class="Space"></div>
	<span class="ArgType">STR</span>
	<span class="ArgMeaning">Image filename or sprite processing string</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center X-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Center Y-coordinate</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor X (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Scaling factor Y (%)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Rotation angle (degrees, counterclockwise)</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value (optional, default 255)</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Loads a hidden extended sprite using with multiply blending.<br>
	</p>
	<hr>
		<a href="#lsp2">lsp2</a> / <a href="#lsph2">lsph2</a> / <a href="#lsp2add">lsp2add</a> / <a href="#lsph2add">lsph2add</a> / <a href="#lsph2sub">lsph2sub</a> / <a href="#csp2">csp2</a> / <a href="#vsp2">vsp2</a> / <a href="#msp2">msp2</a> / <a href="#amsp2">amsp2</a> / <hr>
			<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a><br>
</div><a id="talsp"></a><h2>
	<div class="Support">
		<span class="WordField">
			<span class="NoBr">[Program Block Only]</span>
		</span>
		<span class="EngineField">
			<span class="NoBr">
				<span class="NoBr">( ONScr-RU )</span>
		</span>
	</div>
	<div class="WordName">talsp</div>
</h2><h4>
	<a href="#category_onscr_ru" class="WordCategory">ONScripter-RU Commands</a>
</h4><h3>talsp NUM,NUM</h3><div class="Arguments">
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Sprite number</span>
	<div class="Space"></div>
	<span class="ArgType">NUM</span>
	<span class="ArgMeaning">Opacity value</span>
	<div class="Space"></div>
</div><div class="ContentBody">
	<p class="Description">
		Changes lsp sprite opacity.
	</p>
<hr><a href="#msp">msp</a><hr>
<a href="#top">page top</a> / <a href="#LIST">list</a> / <a href="#MAIN">main</a>
<br>
</div>
</div>
<div id="FOOTER"></div>
</body>
</html>